Expressions and conditions combine data using operators. Operators must work on something to be able to operate. They can work on one piece of data, which makes them unary operators. They can work on two pieces of data, which makes them binary operators, or they can work on three pieces of data, which makes them ternary operators.
Let's look at some of the more common operators.
These operators are the familiar mathematical ones. They are
1 + 3 = 4
2 - 1 = 1
4 / 2 = 2
2 * 2 = 4
9 % 5 = 4
All these operators are binary.
The only arithmetic operator that might need further explanation is the modulus operator. This operator, also called ...