This is my approach

Hello!! I proceed in this way; first divide 63 / 4 then 63 - 15 * 4 = 3 and that’s it!! Just remember to use the integer part of the quotient. Say the rand number is 93… 93 / 4 = 23 → 93 - 23 * 4 = 1. Of course the precedence rule applies. One more, let’s say…18; → 18 / 4 = 4 → 18 - 4 * 4 = 2

Privacy & Terms