CodePlay ?

Home › Loop Rover › 6 / 7

✍️ Write

Sum the multiples

No rover this time. Finish sum_multiples(limit, divisor) so it returns the sum of the positive multiples of divisor that are below limit. For example, sum_multiples(10, 3) is 3 + 6 + 9 = 18.

Loading…