The sqrt() function is defined in math. h header file. To find the square root of int , float or long double data types, you can explicitly convert the type to double using cast operator . int x = 0; double result; result = sqrt(double(x));
Read moreHow do you find the power of a number in darts?
In order to use the pow() function, you must first import the dart:math package.
Read more