public static void Main()
while (choice != "q" && choice != "Q")
Console.WriteLine("How many square roots you would like to calculate starting from the square root of 1?");
string ans = Console.ReadLine();
if (double.TryParse(ans, out n))
{Console.WriteLine("The square root of numbers from 1 to " + n + " is");
Console.WriteLine(("The square root of " +i+ " is " + Math.Sqrt(i).ToString("F3") + " "));
{Console.WriteLine("Invalid input. Please enter a positive number."); }
Console.WriteLine("Enter 'q' to quit or any other key to continue: ");
choice = Console.ReadLine();