Some of 'em numbers X85235


Statement
 

pdf   zip

html

Write a funcion multiply_some(n, a, b) that receives an integer n and two integers a,b such that n < ab, and returns the product of the integers in [a,b] that are multiples of n.

Sample session
>>> multiply_some(2, 5, 10)
480
>>> multiply_some(3, 10, 20)
3240
>>> multiply_some(5, 54, 57)
55
>>> multiply_some(8, 19, 23)
1
Information
Author
ProAl
Language
English
Official solutions
Python
User solutions
Python