static void Main(string[] args)
Random rnd = new Random();
int num1 = rnd.Next(1, 13);
int num2 = rnd.Next(1, 13);
int num3 = rnd.Next(1, 13);
int num4 = rnd.Next(1, 13);
int num5 = rnd.Next(1, 13);
int num6 = rnd.Next(1, 13);
int num7 = rnd.Next(1, 13);
int num8 = rnd.Next(1, 13);
int num9 = rnd.Next(1, 13);
int num10 = rnd.Next(1, 13);
Console.Write("Welcome to your online math test! What is your name?");
name = Convert.ToString(Console.ReadLine());
Console.Write("Hi " + name + " are you ready to take the test? (Type Y for Yes and N for NO)");
response1 = Convert.ToString(Console.ReadLine());
Console.Write("Question 1: " + num1 + " x " + num2 + " = ");
ans[0] = Convert.ToInt32(Console.ReadLine());
if (ans[0] == num1 * num2)
Console.Write("Question 2: " + num3 + " x " + num4 + " = ");
ans[1] = Convert.ToInt32(Console.ReadLine());
if (ans[1] == num3 * num4)
Console.Write("Question 3: " + num5 + " x " + num6 + " = ");
ans[2] = Convert.ToInt32(Console.ReadLine());
if (ans[2] == num5 * num6)
Console.Write("Question 4: " + num7 + " x " + num8 + " = ");
ans[3] = Convert.ToInt32(Console.ReadLine());
if (ans[3] == num7 * num8)
Console.Write("Question 5: " + num9 + " x " + num10 + " = ");
ans[4] = Convert.ToInt32(Console.ReadLine());
if (ans[4] == num9 * num10)
Console.WriteLine("You have finished the math test your score is " + correct + "/" + total);
else if(response1 == "N")
Console.WriteLine("Nice Try!....You're taking this test!");