How do you square root in coding?

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));

Sizin İçin Seçtik  5 Mbps iyi mi?

Leave a Reply

Your email address will not be published. Required fields are marked *