Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int correct = 0;
- int incorrect = 0;
- q1 = Console.ReadLine();
- Console.WriteLine("What is 92x28?");
- if q1 = "2576"
- {
- print("Correct!");
- correct + 1;
- }
- if else
- {
- print("Incorrect...");
- incorrect + 1;
- }
- q2 = Console.ReadLine();
- Console.WriteLine("What is 387+293?");
- if q2 = "680"
- {
- print("Correct!");
- correct + 1;
- }
- if else
- {
- print("Incorrect...");
- incorrect + 1;
- }
- q3 = Console.ReadLine();
- Console.WriteLine("What is 300/10?");
- if q3 = "30"
- {
- print("Correct!");
- correct + 1;
- }
- if else
- {
- print("Incorrect...");
- incorrect + 1;
- }
- q4 = Console.ReadLine();
- Console.WriteLine("What is 239-129?");
- if q1 = "164"
- {
- print("Correct!");
- correct + 1;
- }
- if else
- {
- print("Incorrect...");
- incorrect + 1;
- }
- q5 = Console.ReadLine();
- Console.WriteLine("What is 83x19?");
- if q5 = "1577"
- {
- print("Correct!");
- correct + 1;
- }
- if else
- {
- print("Incorrect...");
- incorrect + 1;
- }
- if (correct > incorrect)
- Console.WriteLine("You passed!");
- if else
- Console.WriteLine("You failed...");
- //for the python edition of this script... see here: https://pastebin.com/7vbjTCXC
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement