Difficulty: ★ ★ ☆ ☆
I think any kid learning math in school knows what a remainder is, but few understand (or are taught) what a modulus is. It obtains the remainder of one value divided by another, specifically a larger value divided by a smaller value. In C programming, the %
(modulo) operator performs this calculation. But what if the C language lacked a modulo operator?
Continue reading