Write a program to find Square Root of any number :-
//Square Root of any number
printf("Enter any number: ");
printf("\n Square root of %lf is: %lf",num,ans);
Enter any number: 144
Square root of 144.000000 is: 12.000000
Explanation of Program:-
1. First it read the value from user by scanf().
2. "sqrt" is a predefined function in math.h header file, it is used for calculate power of any number.