Some of 'em numbers X85235


Statement
 

pdf   zip

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

Sample session

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