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]
In or out? Let's find out!
Write a program that prompts the user for a positive integer n and then prints the numbers from 1 to that integer, each separated by a space.
The input consists of a single integer n representing the limit of the sequence.
The output should be a single line containing the numbers from 1 to the given limit n, 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 for the limit n |
Example Input 1 | Example Output 1 |
3 |
1 2 3 |
Example Input 2 | Example Output 2 |
10 |
1 2 3 4 5 6 7 8 9 10 |