// START HERE
Console.WriteLine("Welcome to this Math Quiz!");
Console.WriteLine("This is your first question");
// RNG
Random rnd = new Random();
float random1 = rnd.Next(-100, 100);
float random2 = rnd.Next(-100, 100);
Console.WriteLine("{0} + {1}?", random1, random2);
// Checks if answer is correct
float answer = random1 + random2;
Convert.ToBoolean(answer);
if (Console.ReadLine(Equals(answer)))
{
Console.WriteLine("Correct!");
}
else
{
Console.WriteLine("False!");
}
// START HERE
Console.WriteLine("Welcome to this Math Quiz!");
Console.WriteLine("This is your first question");
// RNG
Random rnd = new Random();
float random1 = rnd.Next(-100, 100);
float random2 = rnd.Next(-100, 100);
Console.WriteLine("{0} + {1}?", random1, random2);
// Checks if answer is correct
float answer = random1 + random2;
Convert.ToBoolean(answer);
if (Console.ReadLine(Equals(answer)))
{
Console.WriteLine("Correct!");
}
else
{
Console.WriteLine("False!");
}