You’ve seen that when dividing two integer numbers that don’t fit evenly, some amount will be left out. That amount, called the remainder, can be directly retrieved by the modulo operation.
Most languages enable this with the
7 % 3 // 1
LOLCODE enables an equivalent with
MOD OF 7 AN 3 BTW 1
Let’s use this and
QUOSHUNT OF to create a program that finds the integer result and remainder of two inputs.
Create two variables,
smaller, each equal to integer numbers greater than zero.
Convert the two variables to integers.
Print on the next line the modulo of