May 2008
Beginner
550 pages
13h 22m
English
In this chapter you learned the necessary conditions for writing a well-behaved loop. You then applied those conditions to writing for, while, and do-while loops. You also learned that for loops are ideally suited for counting operations and that while loops are good for searching for a particular value in a set of values. Finally, you learned how to transfer control out of a loop (break) before its natural termination condition is reached, and how to continue processing a loop statement block (continue).