1: #include<stdio.h> 2: #include<conio.h> 3: #include<math.h>4: void main()
5: {6: float x,s;
7: clrscr();8: printf("Enter the real num:");
9: scanf("%f",&x);
10: if(x>0.0)
11: { 12: s=sqrt(x);13: printf("Square root of x is: %f",s);
14: } 15: getch(); 16: }
No comments:
Post a Comment