5. Control Statements: Part 2


In this chapter you’ll learn:

• To use the for and do...while repetition statements to execute statements in a program repeatedly.

• To understand multiple selection using the switch selection statement.

• To use the break and continue program control statements to alter the flow of control.

• To use the logical operators to form complex conditional expressions in control statements.

Not everything that can be counted counts, and not every thing that counts can be counted.

Albert Einstein

Who can control his fate?

William Shakespeare

The used key is always bright.

Benjamin Franklin

Intelligence ... is the faculty of making artificial objects, especially tools to make tools.

Henri Bergson

Every advantage ...

Get Java™ for Programmers: Deitel now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.