
It looks like you're new here. If you want to get involved, click one of these buttons!
It's not much really but here it is:
using System;
namespace LearnProgram
{
class Program
{
static void Main(string[] args)
{
int ans01;
int ans02;
int ans03;
int ans04;
Console.WriteLine("2 + 2 x 5");
ans01 = Convert.ToInt32(Console.ReadLine());
if(ans01 == 12) {
Console.WriteLine("Correct! \n So, what's 6 ÷ 2 x 3?");
ans02 = Convert.ToInt32(Console.ReadLine());
if(ans02 == 9) {
Console.WriteLine("Wow you're smart! Now a hard one: 2 + 3");
ans03 = Convert.ToInt32(Console.ReadLine());
if(ans03 == 6) {
Console.WriteLine("You're pretty good! See you later!");
} else {
Console.WriteLine("That was close! Good job!");
}
} else {
Console.WriteLine("I expected better from you... So an easier one: 1203 x 20304 x 20304 x 0");
ans04 = Convert.ToInt32(Console.ReadLine());
if(ans04 == 0) {
Console.WriteLine("I gotta go now but nice job!");
} else {
Console.WriteLine("You're really dumb");
}
}
} else {
Console.WriteLine("You're so stupid. Bye!");
}
Console.ReadKey();
}
}
}