In what concerns the continuous evaluation solving exercises grade during the semester, you should submit until 23:59 of October 26th
(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 prompts the user for a positive integer n and then prints all the multiples of n between 1 and 100 (inclusive), each separated by a space.
The input consists of a single integer representing the number n.
The output should be a single line containing the multiples of nfrom 1 to 100, 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 |
Example Input 1 | Example Output 1 |
11 |
11 22 33 44 55 66 77 88 99 |
Example Input 2 | Example Output 2 |
2 |
2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62 64 66 68 70 72 74 76 78 80 82 84 86 88 90 92 94 96 98 100 |