Just use a for statement whith two conditional variables where one of these variables would be a counter that has to be lower than 3 in order to continue in that question. And the other variable that controls this loop for is a boolean variable that controls if the user gives a right or wrong answer and inside of this loop you make the question and if the user chooses the right answer you change the boolean var to true and the program moves to the next question.
0 comments:
Post a Comment