Count to N
Completed
Read n and print the numbers 1 to n, one per line.
Input
One integer n ≥ 1.
Output
n lines.
Example
Input
5
Output
1 2 3 4 5
Editor
Python
Hints
range(a, b) stops before b.
Solution explanation
range(1, n + 1) produces 1, 2, …, n.
Show solution
n = int(input())
for i in range(1, n + 1):
print(i)