Oh wait another option , via Newton. Its a good approx.
It has similar logic as above, but the heat of the program relies on
calculus, which is done on paper.
double Sqrt(double Num)
{
double i = 2;
double Result = 0;
unsigned int Precision = 10;
for(int j = 0; j <Precision ; j++)
{
Result = i - (i*i - Num) / (2.0*i);
i = Result;
}
return Result;
}