Experimenting with Repeat Loops

Try the following:
  1. Adapt another program so that it will continue running (instead of having to be rerun to see the effect of different inputs).

  2. Change the code of both for loop examples to use repeat loops instead.

  3. Loops within loops are allowed. Modify Integers2 so that it will only accept numbers in the requested range.

Programming - a skill for life!

Iteration: for loops, repeat loops and while loops