public static void Main()
while (choice!="y" && choice!="Y")
Console.WriteLine("How many square roots would you like to calculate?");
string n = Console.ReadLine();
if (double.TryParse(n, out ans))
{Console.WriteLine("Please enter a positive integer.");
choice =Console.ReadLine();
Console.WriteLine("The square root of " +i+ " is " +Math.Sqrt(i).ToString("#.###")+ " ");
Console.WriteLine("Want to try again? Type y to quit or anything else to continue");
choice=Console.ReadLine();