9G. Summary

Use an if-statement to make a decision, or to choose either to do some statements or not to do them.

Use a while-loop for repetition, where a program does some statements zero or more times.

The next page offers advice on writing loops in a way that makes efficient use of your time (and do not involve hours of debugging).