Arithmetic operators are symbols we use to perform mathematical calculations.
Operator | Name | Example | Resultl |
---|
+ | Addition | 5 + 2 | 7 |
- | Subtraction | 5 - 2 | 3 |
* | Multiplication | 5 * 2 | 10 |
/ | Division | 5 / 2 | 2.5 |
% | Modulo (Remainder) | 5 % 2 | 1 |
** | Exponent | 5 ** 2 | 25 |
// | Integer Division | 5 // 2 | 2 |