#include <stdio.h>
#include <math.h>
int main () {
double x, result;
printf("Enter a number\n");
scanf("%lf", &x);
result = sqrt(x);
printf("Square root of %lf = %lf\n", x, result);
return 0;
}1 answer
Best answer
Was this answer helpful?
Thanks for the feedback.
Sign up free to save answers and ask your own doubts
Your answer
Log in or create a free account to answer this question.