0

How do I make options repeatedly available for a user to enter?

I'm working on a project where the user has a choice of 6 options. If they choose from 1-5, they're asked a series of 5 math questions. If they choose 6, it ends and tells them how many they got correct. My problem is that I have to make those 6 options available again after they answer those 5 math questions. I get that I need to use a loop, but I'm puzzled on exactly how. Pls help. Hope my description makes enough sense

8th Oct 2016, 10:23 PM
Ryan Wright
Ryan Wright - avatar
2 Antworten
+ 2
use a variable boolean=true and set to false in a loop while when you have the necessary.
8th Oct 2016, 10:35 PM
Wanderlei Borges
Wanderlei Borges - avatar
0
That could help. Let me try putting that in. Thnx man
8th Oct 2016, 10:40 PM
Ryan Wright
Ryan Wright - avatar