C++ How To Find the Square Root of a Number
Find the Square Root of a Number
Use the sqrt() function from the <cmath> library to find the square root of a number:
Example
double number = 64;
cout << sqrt(number);
Explanation:sqrt() returns the number that gives number when it is multiplied by itself. 8 * 8 is 64.