Pages

Friday, April 29, 2016

C program to show use of sqrt() Library Functions.

This program demonstrate use of two library function:
--> sqrt()
--> printf()
*/
#include<stdio.h>
#include<math.h>
void main()
{
     float ans;
     ans = sqrt(100);
    
     printf("The square root of 100 is %f.", ans);  
}
//Output
The square root of 100 is 10.000000.

No comments:

Post a Comment