How to write a c program to find the square root of a number in c programming ?
Solution:
#include <stdio.h>
#include <math.h>
int main()
{
double a;
int b;
printf("Enter number:",b);
scanf("%d",&b);
a = sqrt(b);
printf("%f",a);
return 0;
}
Learn To Write A Program. Learn Programming Online. Find Programming Solutions.