math.h sqrt In C

 

https://docs.vultr.com/clang/standard-library/math-h/sqrt

 

 

math.h sqrt  In C, the sqrt() function from math.h calculates the square root of a given number.

 

In Java, you can use Math.sqrt(), which works the same way. It returns the positive square root of a number as a double.