CAPE Computer Science Unit 1 · 2012 · Paper 2 · Question 3(d)
Write an algorithm that uses iteration to find the sum of all multiples of 4 and all multiples of 7 between m (inclusive) and n (inclusive) where m and n are two positive integers entered via the keyboard, assuming n > m.
The mark scheme is shown once you've answered.
Practise this question