Prometheus
Everything is mutable; nothing is sacred
- Reaction score
- 589
I'm coding the game "Who Wants To Be A Millionaire" in C# and I was wondering if anyone wanted to help out with the questions.
Its simple enough, just fill it in.
1st X is the question, next 4 Xs are the answers.
Where it says case "a" and such, leave it as is except change the "Wrong" to "Correct!" on which ever one is the answer.
Leave Y alone.
Thanks you to all who may help. Also, write if it is a $100 question, $200, $100, ect.
+rep <
Its simple enough, just fill it in.
1st X is the question, next 4 Xs are the answers.
Where it says case "a" and such, leave it as is except change the "Wrong" to "Correct!" on which ever one is the answer.
Leave Y alone.
Thanks you to all who may help. Also, write if it is a $100 question, $200, $100, ect.
+rep <
Code:
case Y:
Console.WriteLine("X");
Console.WriteLine("a: X");
Console.WriteLine("b: X");
Console.WriteLine("c: X");
Console.WriteLine("d: X");
string inptY = Console.ReadLine();
switch (inptY)
{
case "a":
Console.WriteLine("Wrong");
goto end;
case "b":
Console.WriteLine("Wrong");
goto end;
case "c":
Console.WriteLine("Wrong");
goto end;
case "d":
Console.WriteLine("Wrong");
goto end;
default:
Console.Clear();
Console.WriteLine("Make sure you're saying a, b, c or d");
goto restY;
}
break;