< previous page page_459 next page >

Page 459
9
Additional Control Structures
GOALS
To be able to write a Switch statement for a multi-way branching problem.
To be able to write a Do-While statement and contrast it with a While statement.
To be able to write a For statement as an alternative to a While statement.
To understand the purpose of the break and continue statements.
To be able to choose the most appropriate looping statement for a given problem
To be able to express a loop invariant as a comment within a program.

 
< previous page page_459 next page >