public static void Main()
Console.Write("Enter how many square roots you want to calculate: ");
validInput = double.TryParse(Console.ReadLine(), out userInput);
Console.WriteLine("Error: Please enter a valid number.");
Console.WriteLine("Error: Please enter a positive number.");
for (int i = 1; i <= userInput; i++)
double squareRoot = Math.Sqrt(i);
Console.WriteLine("The square root of " + i + " = " + squareRoot.ToString("0.###"));
Console.WriteLine("Do you want to continue? (yes/no)");
string response = Console.ReadLine().ToLower();
while (response == "yes")
Console.WriteLine("Program ended.");