Sqrt Function
The Sqrt function is used for finding the square root of a number .
Syntax:
float sqrtf(float num); double sqrt(double num); long double sqrtl(long double num);
Example:
#include <math.h>
#include <stdio.h>
int main()
{
printf("\n%f", sqrt(19.0));
printf("\n%f", sqrt(16.0));
return 0;
}
Back