Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<math.h>
- #include<conio.h>
- //C sqrt() Function
- int main()
- {
- /*The square root is therefore an nth root with .
- any positive real number has two square roots, one positive and one negative */
- double num,result;
- printf(" Enter any number : \n");
- scanf("%lf",&num);
- result=sqrt(num);
- printf("square root of %.2lf= %.1lf",num,result);
- return 0;
- }
Add Comment
Please, Sign In to add comment