revised: 10/03/98, 08/05/99, 01/20/00, 01/14/06, 12/14/08
CHAPTER 16 — More about Counting Loops
This chapter gives you more practice with counting loops. There are other types of loops, but counting loops are by far the most common and well worth further study.
Chapter Topics:
- Counting upward by two's
- The
whilecondition as a gatekeeper - Iteration
- Decrementing the loop control variable
- Infinite loops
- Basing a value on the loop control variable
QUESTION 1:
(Review) What three parts of a loop must be coordinated for it to work properly?