Fundamental Rule of Assignment
v
Fundamental rule of assignment
The expression is evaluated before the assignment is made
o
score = score + 3
o
shotClock = shotClock - 1
Computing is
NOT
algebra
: Though = is used in assignment
statements, it means “becomes” whereas in algebra it means
equality. So,
score = score + 3
is essential to computing,
but meaningless in algebra