O'Reilly logo

Visual C#® 2012: How to Program, Fifth Edition by Harvey Deitel, Paul Deitel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

6. Control Statements: Part 2

Who can control his fate?

—William Shakespeare

The used key is always bright.

—Benjamin Franklin

Every advantage in the past is judged in the light of the final issue.

—Demosthenes

Objectives

In this chapter you’ll:

• Learn the essentials of counter-controlled repetition.

• Use the for and do...while repetition statements.

• Use the switch multiple selection statement.

• Use the break and continue statements to alter the flow of control.

• Use the logical operators to form complex conditional expressions.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required