Test yourself on Operators with exam style questions, marked instantly.
Flashcards that come back just before you would forget them.
A revision plan that remembers what you know and shows what to do next.
See which topics you have nailed and which need another look.
Quiz yourself on OperatorsGet your flashcardsBuild my revision planTrack my progressDeep Dive: DIV and MOD
DIV (integer division) - divides and throws away the remainder:
- 17 DIV 5 = 3 (17 ÷ 5 = 3 remainder 2)
- 10 DIV 3 = 3
MOD (modulus) - gives only the remainder:
- 17 MOD 5 = 2
- 10 MOD 3 = 1
Common uses:
- Check if even:
number MOD 2 == 0 - Get last digit:
number MOD 10 - Cycle through 0-9:
counter MOD 10
Make this stick
Signing in gives access to all PrepWise features.