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?
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?
"You can lead a man to Congress, but you can't make him think."
"The Grand Old Duke of York
-He had ten thousand men.
-His case comes up next week."
"Roses are red, violets are blue, I'm schizophrenic, and so am I."
"A computer once beat me at chess, but it was no match for me at kick boxing."
"More and more of our imports are coming from overseas."
--George W. Bush
"If it weren't for electricity, we'd all be wacthing TV by candlelight."
--George W. Bush
look up sqrt() in cmath.
Code:#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; }