Chapter 8. FLOW OF CONTROL PART I: BRANCHING STATEMENTS AND RELATED CONCEPTS

You will learn about the following in this chapter:

  • The main structures used to control the order in which the statements of a program are executed

  • The if-else statement

  • The comparison operators and how they allow programs to make meaningful decisions when combined with control structures like the if-else statement

  • How the nested and multibranch if-else statements can help you solve important computational problems

  • The logical operators and how they allow you to implement more powerful yet simpler programs

  • The infamous goto statement, why it should be avoided in most situations, and the few cases where it can be useful in C#

  • The switch statement

  • The scope and lifetime concepts ...

Get C# Primer Plus now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.