Arithmetic Operators (Simplified Explanation)
Arithmetic operators are symbols used in programming to do math operations like adding,
subtracting, multiplying, and dividing numbers.
They work similar to the way we use math in school, but sometimes computers show the
results in a different way (for example, division gives decimals).
1. Addition (+)
Adds two numbers together.
Example: 5 + 3 = 8
2. Subtraction (-)
Takes one number away from another.
Example: 9 - 4 = 5
3. Multiplication (*)
Multiplies two numbers.
Example: 6 * 3 = 18
4. Division (/)
Divides one number by another and gives the full (decimal) result.
Example: 10 / 4 = 2.5
5. Floor Division (//)
Divides two numbers and gives only the whole number part.
Example: 7 // 3 = 2
6. Modulus (%)
Gives the remainder after dividing two numbers.
Example: 10 % 3 = 1
7. Exponent (**)
Raises one number to the power of another.
Example: 2 ** 3 = 8
Summary Table
Operator Meaning Example Result
+ Addition 10 + 3 13
- Subtraction 10 - 3 7
* Multiplication 10 * 3 30
/ Division 10 / 3 3.33
// Floor Division 10 // 3 3
% Modulus 10 % 3 1
** Exponent 2 ** 3 8
Conclusion
Arithmetic operators are simple tools that help computers do math just like we do.
Once you understand them, you can easily make programs that calculate, count, or compare
numbers.