2 C# Programming Basics
I n this chapter we will learn about the basic elements of a simple C# program. We use integer values and variables to represent storage locations. Identifiers name variables and other program elements. The assignment statement lets us assign a value to a variable. Expressions compute values. We study arithmetic expressions built using arithmetic operators. Precedence rules permit less use of parentheses in expressions. Input and output methods communicate between the user and the computer. A method implements a computation or an action. We learn to create our own methods, passing parameters and returning values.