C Program to find square root of a number
Code -
#include<stdio.h>
#include<math.h>
int main()
{
printf("Enter the Number:");
int num;
scanf("%d",&num);
printf("Square root of %d is : %0.2lf\n",num,sqrt(num));
}
Input/Output:
Enter the Number:9
Square root of 9 is: 3.00
Post a Comment