After you plugged each of the expressions into the code, you should have the results on your scratch paper shown below.
Addition, subtraction and multiplication all work as expected.
Division is problematic as there are two forms of division with which you should be familiar, floating point division and integer division.
In floating point division, the expression 3 / 2 evaluates to 1.5, which is what you typically get when you use a calculator.
In integer division, divide as usual then truncate, which means cut or ignore, the value to the right of the decimal place.
Finally, the "mod" operator, which is referred to as modular division, modulo division, or just the remainder, goes hand in hand with integer division. Using the division symbol (/) results the whole number or quotient while the mod operator gives you the remainder or leftovers.
Therefore, 5 % 3 evaluates to 2 because 3 goes into 5 once with 2 left over.
We will explore this concept a little more throughly in the next video, but, before that, try your hand at the following quiz.