C. Control Statements


Objectives

In this appendix you’ll:

Image Learn basic problem-solving techniques.

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

Image Use the if and if...else selection statements to choose among alternative actions.

Image Use the while repetition statement to execute statements in a program repeatedly.

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

Image Use the compound assignment, increment and decrement operators.

Image Learn the essentials of counter-controlled repetition.

Image Use the for and do...while repetition statements to execute statements in a program repeatedly.

Image Implement multiple selection using the switch statement.

Image Use the break and continue statements.

Image Use the logical operators in conditional expressions.


..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset