Estimate a square root of a number n:
1.make a guess (you can pick n/2);
4.Go back for step 2 and 3,until the guess is within 1% of the previous guess.the more,the closer.
OK,so we need a program to do it!
using namespace std;
cout<<"It is "<<gue;
Look,I make gue1 to be the previous guess,so we can stop the program,but when I run it,it
is a infinite loop.Why?