0

Dear Programmer, I was asked to develop a console programme that reads an integer n and a list of up to 5 divisors (also integers) from the console and computes the sum of all integers up to (but excluding) n which are divisible by any of the five divisors. For example if n = 10, and the list of divisors provided is [3, 5] then the numbers divisible by 3 or 5 are 3, 5, 6, 9 and their sum is 23 and hence the output is 23.

Then also create a Web Service for the above programme.

3
Contributors
3
Replies
24
Views
4 Years
Discussion Span
Last Post by pitic
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.