Section 9.4
A program with a loop

A more complicated program is presented and analyzed in this section, a program with a while loop. It is actually the good old familiar Euclid algorithm for finding the greatest common divisor (GCD) of two whole numbers.

Start Reading

next section

  [Full page version] [Review questions ...answers] [Section map] [Chapter 9 home] [Book home] [Quiz]