November 2011
Beginner
992 pages
38h
English
Who can control his fate?
—William Shakespeare
Not everything that can be counted counts, and not every thing that counts can be counted.
—Albert Einstein
Objectives
In this chapter you’ll:
• Learn the essentials of counter-controlled repetition
• Use the for and do...while repetition statements to execute statements in a program repeatedly.
• Perform multiple selection using the switch selection statement.
• Use the break and continue program-control statements
• Use the logical operators to make decisions.
Outline
8.2 Essentials of Counter-Controlled Repetition
8.4 Examples Using the for Statement
Read now
Unlock full access