In what concerns the continuous evaluation solving exercises grade during the semester, you should submit until 23:59 of March 24th
(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 #03 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 prints all the multiples of N between A and B (inclusive).
The input consists of one line containing three integers N A B indicating the number to consider and the limits of the range.
The output should be made of all the multiples of N in the range [A,B], one per line, in increasing order.
The following limits are guaranteed in all the test cases that will be given to your program:
1 ≤ N ≤ 105 | Number for which to consider multiples | |
1 ≤ A ≤ B ≤ 105 | Range to consider |
Is it also guaranteed that there will be at least one multiple of N in the given range.
Example Input 1 | Example Output 1 |
3 5 20 |
6 9 12 15 18 |
Example Input 2 | Example Output 2 |
7 20 21 |
21 |
Example Input 3 | Example Output 3 |
1 39 42 |
39 40 41 42 |