Question:I have just started learning C# with one of brackey’s tutorials, and I have tried to make a simple quiz. I have tried everything I could have thought to do (basically deleting instances of the variables I was having trouble with), and I can’t find anything online that I can understand or implement into my current scenario.
Overall, I need a way to reference the correct01 and 02 variables from inside the switch statements.
Answer:Because you had decalred two variable with the same name.
Remove the bool that is in the switch statement
If you have better answer, please add a comment about this, thank you!