Objectives
In this chapter you’ll:
• Use for
and do
...while
to execute statements in a program repeatedly.
• Implement multiple selection using the switch
selection statement.
• Learn how break
and continue
alter the flow of control.
• Use the logical operators to form complex conditional expressions in control statements.
• Learn to avoid the consequences of confusing the equality and assignment operators.