| Handy Andy wrote: |
|---|
| The question is should it be a do/while, for or while loop? |
for or a while loop? One can easily be converted into the other. And do...while is only to guarantee a run-through even if the condition is not met the first time, so mentioning this construct is distracting from the essence of the problem.