We’ve now completed our introduction to control statements. This chapter demonstrated the
switch statements. We showed that any algorithm can be developed using combinations of the sequence structure, the three types of selection statements—
switch—and the three types of repetition statements—
for. We discussed how you can combine these building blocks. You used the
continue statements to alter a repetition statement’s flow of control. We also introduced logical operators, which enable you to use more complex conditional expressions in control statements. Finally, we examined the common errors of confusing the equality and assignment operators and provided suggestions ...