public static void Main()
Console.Write("Do you want to stop? (y/n): ");
string ans = Console.ReadLine();
Console.Write("Do you want to stop? (y/n): ");
ans = Console.ReadLine();
Console.WriteLine("Loop has ended.");
Console.Write("Please type a number: ");
int num = int.Parse(Console.ReadLine());
Console.Write("Do you want to stop? (y/n): ");
string b = Console.ReadLine();
Console.Write("Please type a number: ");
num += int.Parse(Console.ReadLine());
Console.Write("Do you want to stop? (y/n): ");
Console.WriteLine("Your total is " + num + ".");
Console.Write("Please type a number: ");
int ab = int.Parse(Console.ReadLine());
for (int i = 0; i <= ab; i++)
Console.WriteLine("Type a number greater than 1!");
Console.Write("Please type a number: ");
c = int.Parse(Console.ReadLine());
Console.WriteLine("Type a number greater than 1!");