Math Operators
Operator | Description | Example | Result |
---|---|---|---|
+ | Addition | 1 + 2 | 3 |
- | Subtraction | 2 - 1 | 1 |
* | Multiplication | 4 * 4 | 16 |
/ | Division | 4 / 2 | 2 |
% | Remainder | 7 % 5 | 2 |
** | Exponent | 3 ** 2 | 9 |
++ | Increment | b++ | Variable b is set to b + 1 |
-- | Decrement | b-- | Variable b is set to b - 1 |
8 / 19