Chapter 5. Using compound assignment and iteration statements

After completing this chapter, you will be able to:

Image Update the value of a variable by using compound assignment operators.

Image Write while, for, and do iteration statements.

Image Step through a do statement and watch as the values of variables change.

Chapter 4, “Using decision statements,” demonstrates how to use the if and switch constructs to run statements selectively. In this chapter, you’ll ...

Get Microsoft Visual C# Step by Step, 8th Edition now with O’Reilly online learning.

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