In what concerns the continuous evaluation solving exercises grade during the semester, you should submit until 23:59 of October 18th
(this exercise will still be available for submission after that deadline, but without couting towards your grade)
[to understand the context of this problem, you should read the class #02 exercise sheet]
Can you find all multiples of a given number within a specific range?
Write a program that given three integers n a b all the multiples of n between a and b (inclusive), each separated by a space.
The input consists of three lines:
The output should be a single line containing the multiples of n from a to b, separated by single spaces. Note that there should not be any space after the last number.
The following limits are guaranteed in all the test cases that will be given to your program:
1 ≤ n ≤ 100 | Range of n | |
1 ≤ a ≤ b ≤ 10 000 | Range of multiples |
Example Input 1 | Example Output 1 |
4 1 30 |
4 8 12 16 20 24 28 |
Example Input 2 | Example Output 2 |
2 10 20 |
10 12 14 16 18 20 |