Operators and Expressions

Arithmetic Operators     +    -    /    *    %

 9
20
1
0

Assignment Operator     =

jimbo
Donna 

Concatenation Operator    .

hello world

the width is 212 centimeters or 2.12 meters 

Combined Assigment Operators   +=   -=   /=   *=   %=   .=

8

5

15

3

1.5 

Post- and Pre-increment and Post- and Pre-decrement Operators   ++   --

Examples:

x = 6

y = x++ + 3 = 9 (and x becomes 7)

x = 6

y = ++x + 3 = 10 (and x becomes 7)

x equals 6

y equals 9

x equals 7

x set back to 6

y equals 10

x equals 7 

Comparison Operators

Equivalence   ==

x = 4
y = 6
x does not equal y  

Non-equivalence   !=

x = 4
y = 6
x does not equal y