Sign In | Subscribe

Enter your Sign on user name and password.

Forgot password?
  • Follow us on:
Start learning today, and be successful in your academic & professional career. Start Today!
Loading video...
This is a quick preview of the lesson. For full access, please Log In or Sign up.
For more information, please see full course syllabus of C#
  • Discussion

  • Study Guides

  • Table of Contents

Lecture Comments (3)

0 answers

Post by Ru Chigoba on February 6 at 07:55:32 PM

Hi.The exercise file in for this lecture is not opening in Visual Studio 2015. I'm not sure what could possibly be the problem.

1 answer

Last reply by: Kitt Parker
Sat May 9, 2015 9:18 PM

Post by David Löfqvist on March 8, 2015

How do I use "<", ">" and "<=" to compare inputs in switch-statements?

Program Flow Control

  • Decisions use Boolean logic (True/False)
  • The two types of Boolean operators are: Comparison Operators, which compare two values, and Logical Operators, which compare two or more expressions
  • if…else statements are used for a small number of evaluations
  • The shortened if statement
    • [variable] = (boolean) ? “True Value” : “False Value”;
  • switch statements are for a large number of evaluations