Divisibility without using modulus
The aim of the program is to find whether a number is divisible without using the modulus operator
What do I mean by this?
If I say 27 is divisible by 3, a routine has to be followed which does not include modulus operator to check whether 27 is divisible by 3 and follows some other procedure for checking divisibility!
Can anyone provide me a solution?
|