public static void Main()
Random generator = new Random();
int random1 = generator.Next(10, 999);
int random2 = generator.Next(10, 999);
int correctAnswer = random1 + random2;
Console.WriteLine("Please add these two numbers together and type your answer.\n");
Console.WriteLine(String.Format("{0,6}", random1));
Console.WriteLine(String.Format("{0,5}", random2));
Console.WriteLine("-------");
Console.WriteLine(String.Format("{0,6}", "?"));
int studentAnswer = int.Parse(Console.ReadLine());
Console.WriteLine("\nThe correct answer is: " + correctAnswer);