Electrical and Computer Engineering
14 of 48
UAH
CPE 112
Example Expressions
•     Expression Value
•  3 + 6    9
•  3.4 – 6.1  -2.7
•  2 * 3    6
•  8/2    4
•  8.0/2.0    4.0
•  8/8    1
•  8/9    0
•  8/7    1
•  8 % 8    0
•  8 % 9    8
•