Compute the remainder of a divided by b without using the modulo operator.
Constraints
Example
>>> modulo_remainder(10, 3) 1 >>> modulo_remainder(-10, 3) 2 >>> modulo_remainder(10, -3) 1 >>> modulo_remainder(-10, -3) 2 >>> modulo_remainder(0, 5) 0
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints