Print N Downward
Time limit1sMemory limit128 MB
Read a number N and print integers from N down to 1, one per line.
- Level
Easy1 of 10
- Topics
- Implementation
- Solved
- No attempts yet
Problem
Given a natural number N, write a program that prints the integers from N down to 1, one per line.
Input
The first line contains a natural number N. N is at most 100,000.
Output
Print N, N-1, ..., 1 in order, one number per line, from the first line through the N-th line.