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

5. Control Statements: Part 1

Let’s all move one place on.

—Lewis Carroll

The wheel is come full circle.

—William Shakespeare

All the evolution we know of proceeds from the vague to the definite.

—Charles Sanders Peirce

Objectives

In this chapter you’ll:

• Learn basic problem-solving techniques.

• Develop algorithms through the process of top-down, stepwise refinement.

• Use the if and if...else selection statements to choose between actions.

• Use the while statement to execute statements repeatedly.

• Use counter-controlled repetition and sentinel-controlled repetition.

• Use the increment, decrement and compound assignment operators.

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