< previous page page_280 next page >

Page 280
To see how this code works, let's trace its execution with these data values (<EOF> denotes the end-of-file keystrokes pressed by the user):
3
1
<EOF>
We'll keep track of the variables starCount and loopCount, as well as the logical expressions. To do this, we've numbered each line (except those containing only a left or right brace). As we trace the program, we indicate the first execution of line 3 by 3.1, the second by 3.2, and so on. Each loop iteration is enclosed by a large brace (see Table 6-1).
0280-01.gif

 
< previous page page_280 next page >