Revised 10/03/98; 08/05/99; 01/20/00

CHAPTER 17 ---- Example Counting Loops

This chapter contains some examples of counting loops. These examples will give you a better idea of what loops can do than the simple examples of the previous two chapters.

Examples in this Chapter:

  • Adding Up Even and Odd Integers.
  • Computing N Factorial.
  • Dropping a Brick from a Tower.
  • Printing a Rectangle of Stars.
Each of these examples will give you practice in building programs out of fundamental pieces.

QUESTION 1:

Would you like to add up all the even integers from zero to one thousand?

Click Here after you have answered the question