Objectives
In this chapter you’ll:
• Use the if
and if
...else
selection statements to choose among alternative actions.
• Use the while
repetition statement to execute statements in a program repeatedly.
• Implement counter-controlled repetition and sentinel-controlled repetition.
• Use the increment, decrement and assignment operators.