public static void Main(string[] args)
{
Random numberGen = new Random();
int num01 = numberGen.Next(1,1000001);
int num02 = numberGen.Next(1,1000001);
Console.WriteLine("What is " + num01 + " times " + num02 + " ?");
int Answer = Convert.ToInt32(Console.ReadLine());
if (Answer == num01 * num02)
{
Console.WriteLine("Well done your correct!");
}
else
{
int responseIndex2 = numberGen.Next(1, 3);
switch (responseIndex2) {
case 1:
Console.WriteLine("You noob");
break;
case 2:
Console.WriteLine("Are you trying uh?!");
break;
}
}
Console.ReadKey();
}
OK, so I can't find any replacement for Convert.ToInt32 and when I try to run the program its crashes when I answer I think it because of its too much numbers even tho its only 20 numbers?