is there an easy (or even not easy) way to find the square root of a number in c++? like, well, actually i have no idea how you would do it.... is it even possible?

Printable View

- 03-27-2003Geo-Fryfinding the square root of a number
is there an easy (or even not easy) way to find the square root of a number in c++? like, well, actually i have no idea how you would do it.... is it even possible?

- 03-27-2003alpha
look up sqrt() in cmath.

- 03-27-2003RoDCode:
`#include <iostream>`

#include <ctype.h>

#include <math.h>

using namespace std;

int main()

{

double find_sqrt;

cout << "Enter a double: ";

cin >> find_sqrt;

cout << sqrt(find_sqrt) << endl;

return 0;

}