How to find remainder without using modulo or% operator?

Given two numbers ‘num’ and ‘divisor’, find remainder when ‘num’ is divided by ‘divisor’. The use of modulo or % operator is not allowed. Recommended: Please try your approach on {IDE} first, before moving on to the solution. // This code is contributed by Sam007. // This code is contributed by Sam007.
For More Information Please Refer:


You May Also Like to Read: