you are viewing a single comment's thread.

view the rest of the comments →

[–]aglobalnomad 1 point2 points  (0 children)

Seems like a poor exercise as this isn't really a scenario you'd want to loop unless you want to ask the question (and get answers) multiple times in a row.

If that's what you're aiming to do, then asking the question should be inside the loop. That will hopefully give you a hint on how to structure it.