Arithmetic Operators Examples

1. Addition (+)

Example: 10 + 9 = 19

The addition operator (+) adds two numbers together.

2. Subtraction (-)

Example: 89 - 37 = 52

The subtraction operator (-) subtracts one number from another.

3. Multiplication (*)

Example: 3 * 78 = 234

The multiplication operator (*) multiplies two numbers.

4. Division (/)

Example: 60 / 6 = 10

The division operator (/) divides one number by another.

5. Modulus (%)

Example: Remainder of 298 / 8 = 2

The modulus operator (%) returns the remainder of a division.

6. Increment (++)

Example: 8 incremented by 1 = 9

The increment operator (++) increases a variable's value by 1.

7. Decrement (--)

Example: 55 decremented by 1 = 54

The decrement operator (--) decreases a variable's value by 1.