DIV and MOD

Complete the previous lesson to unlock this one.

Back to the path

DIV and MOD

Level 2: Values. Paper 2 likes integer division. DIV is how many times it fits; MOD is the remainder. / is real division.

10 DIV 3 is 3. 10 MOD 3 is 1. 10 / 3 is 3.33… — usually the wrong one for counts and traces.

Run this, then Check.