Revised: 10/03/98, 08/05/99, 01/20/00, 02/19/04, 01/14/06, 10/12/08, 08/17/10, 07/04/2014, 07/21/2017

go to home page   go to next page hear noise highlighting

CHAPTER 21 — Nesting Loops and Ifs

Chapter Topics:

This chapter shows how counting loops and if statements are used together to implement the logic of a program.

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


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

go to home page   go to next page