public static void Main()
Console.WriteLine("How many numbers would you like to know the square root of?");
string ans = Console.ReadLine();
if (double.TryParse(ans, out num))
Console.WriteLine("Enter a positive integer");
Console.WriteLine("The square roots up to are" + num + ":");
Console.WriteLine("The square root of " + i + " is, " + Math.Sqrt(i).ToString("##.###"));
Console.WriteLine("Enter a positive number.");
Console.WriteLine("Press q to quit or press any other key to continue");
restart = Console.ReadLine();