Submitted by raddleboy in programming (edited )
I have a puzzle for which i'd like to give infinite attempts to the person who's trying to solve it. Otherwise the candidate will have to, over and over launch the program.
An easier solution would also be welcome.
Twoeyes wrote (edited )
I would have approached it slightly different.
Something like (just an example, syntax is wrong)
Repeat for each question
You could also do stuff with an array or some lists to contain it all in the one loop, but I don't know the syntax well enough to write it off the top of my head.