using System;
public class Program
{
public static void Main()
int number = 81;
double root = 1;
int i = 0;
//The Babylonian Method for Computing Square Roots
while (true)
i = i + 1;
root = (number / root + root) / 2;
Console.WriteLine(i);
if (i == number + 1) { break; }
}
//Output
Console.WriteLine("Square root: {0}", root);