expressions | |||||||||||||||||||||||||||
Individual variables are OK, but we also need to combine values | |||||||||||||||||||||||||||
Operators | |||||||||||||||||||||||||||
Combine values to produce a result | |||||||||||||||||||||||||||
Syntax: | <operand> <operator> <operand> | ||||||||||||||||||||||||||
Arithmetic operators | |||||||||||||||||||||||||||
+ | add | ||||||||||||||||||||||||||
- | subtract | ||||||||||||||||||||||||||
* | multiply | ||||||||||||||||||||||||||
/ | divide | ||||||||||||||||||||||||||
% | modulus (remainder) | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||