Академический Документы
Профессиональный Документы
Культура Документы
9/30/12
objective
Write simple C# applications using code Write input/output statements. Declare and use data of various types. Store and retrieve data from memory. Use arithmetic operators. Determine the order in which operators are applied. Write decision-making statements. Use relational and equality operators.
9/30/12
simple c# APP
9/30/12
part of program
9/30/12
demo
9/30/12
variable
9/30/12
variable in math
x=3+2
What is the meaning of x?
9/30/12
what is variable?
variable is a block of memory. is a way that programmer use to store information or data. is the information or data use by program
9/30/12
syntax:
modifier+ data type+ variable name[+=+ initializer]+; Ex: public string x; public string x=c sharp; note: C sharp is case sensitive. ex: public <> Public <> pUblic <> puBlic
9/30/12
variable naming
not begin with number or symbol no space not the same as c sharp keyword
9/30/12
key word
9/30/12
9/30/12
demo
9/30/12
data type
9/30/12
9/30/12
demo
9/30/12
arithmetic operator
9/30/12
9/30/12
9/30/12
demo
9/30/12
9/30/12
9/30/12
9/30/12
demo
9/30/12
decision statement
9/30/12
if statement that allows an application to make a decision based on the value of a condition.
9/30/12
using if
if ( number1 == number2 ) //doing some thing
9/30/12
demo
9/30/12
9/30/12
9/30/12
demo
9/30/12