Chapter 2. Branching and Operators: The Math Game

Now that you know how to set up a basic C# program, you are ready to manipulate information in a more interesting way. In this chapter, you will learn several ways computers deal with information. You will also learn how to have computers appear to make decisions and how to generate random numbers, which are useful in a surprising number of situations. After reading this chapter, you will be able to:

  • Understand numeric data types.

  • Convert variables from one type to another.

  • Use if and switch statements to control branching behavior.

  • Create a random number.

  • Understand basic math and assignment operators.

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

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