OCR GCSE Computer Science · J277
Paper 2
Revise: Common Arithmetic OperatorsFor instance,
12 MOD 2is 0. This makes modulo useful for checking whether a whole number is even: an even number has no remainder when divided by 2; an odd number has a remainder of 1.