Skip to Content
Microsoft® Visual C#® 2005 Step by Step
book

Microsoft® Visual C#® 2005 Step by Step

by John Sharp
October 2005
Beginner content levelBeginner
592 pages
15h 2m
English
Microsoft Press
Content preview from Microsoft® Visual C#® 2005 Step by Step

Chapter 4. Using Decision Statements

After completing this chapter, you will be able to:

  • Declare bool variables.

  • Use Boolean operators to create expressions whose outcome is either true or false.

  • Write if statements to make decisions based on the result of a Boolean expression.

  • Write switch statements to make more complex decisions.

In Chapter 3, you learned how to group related statements into methods. You also learned how to use arguments and parameters to pass information to a method and how to use return statements to pass information out of a method. Dividing a program up into a set of discrete methods, each designed to perform a specific task or calculation, is a recommended design strategy. Many programs need to solve large and complex problems. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft® Visual C#® 2010 Step by Step

Microsoft® Visual C#® 2010 Step by Step

John Sharp
Professional C# 2005

Professional C# 2005

Christian Nagel, Bill Evjen, Jay Glynn, Karli Watson, Morgan Skinner, Allen Jones

Publisher Resources

ISBN: 0735621292Supplemental ContentErrata