
Prelab Activities
Review
In preceding chapters, we covered three control structures: the sequence, the if
statement, and the while statement. In this chapter, we introduce five additional
control structures that make certain tasks easier. However, they are the icing on the
cake. You cannot do anything with them that you cannot do with the control
structures that you already know.
break and continue
Both break and continue are statements that alter the flow of execution within a
control structure. The break statement is used with the switch statement, the while
statement, the do-while statement, and the for statement. (The switch, do-while, and for