A program that takes two integers N and M, and calculates N Mod M without using any inbuilt modulus operator.