To find the square root of int, float or long double data types, you can. Web the sqrt () function is defined in math.h header file. Long double sqrt (long double x );. #include<cmath.<strong>h</strong>> double sqrt (double x ); If x is negative, the sqrt function will return a domain error. Float sqrt (float x ); Web the sqrt function returns the square root of x.
If x is negative, the sqrt function will return a domain error. Web the sqrt function returns the square root of x. #include<cmath.<strong>h</strong>> double sqrt (double x ); To find the square root of int, float or long double data types, you can. Web the sqrt () function is defined in math.h header file. If x is negative, the sqrt function will return a domain error. Long double sqrt (long double x );. Float sqrt (float x );