Modulo Calculator Example Modulo Calculation. You need to write a piece of software that tells a user whether a number they input is a multiple of 4. You can use the modulo calculation to accomplish this. If a number is a multiple of 4, when you divide it by 4 the remainder will be 0. So you would create the logic to take an input and use the mod 4 operation on it. If the result is 0 the number is a multiple of 4 otherwise the number is not a multiple of 4.