Revised: 10/03/98, 08/05/99, 01/20/00, 02/19/04, 01/14/06

CHAPTER 17 — Nesting Loops and Ifs

The example programs in this chapter show how counting loops are typically used.

Examples in this Chapter:

These examples give you practice in building programs out of fundamental pieces.

QUESTION 1:

With only paper and pencil, would you like to add up all the integers from zero to one thousand?