Fundamentals of Programming
Lecture 6 Hamed Rasifard
1
Fundamentals of Programming Lecture 6 Hamed Rasifard 1 Outline - - PowerPoint PPT Presentation
Fundamentals of Programming Lecture 6 Hamed Rasifard 1 Outline Expressions Assignment Operators Increment and Decrement Operators if Selection Structure if/else Selection Structure 2 Expressions Formulas that show how
Lecture 6 Hamed Rasifard
1
2
constants
and operands
3
4
Simple Assignment Compound Assignment
left operator
5
the value of a expression in a variable
6
compute new value of that variable
shorten this kind of statements
7
incrementing and decrementing
used for incrementing and decrementing a variable
assignments allow us to shorten these expression even further
8
value of a expression
and integer number 1 is interpreted as true
9
to various situations
particular execution path from two alternatives
10
11
mandatory
12
when expression value is true or false
13
14
statement inside if/else statements
15
16
17