Countdown!
0.5s 256MGiven a positive integer \(N\), output \(N\), \(N-1\), \(N-2\), down to \(1\), with one number on each line.
Input
The input contains one positive integer \(N\).
Constraints
- \(1 \le N \le 1000\)
Output
Output \(N\) lines. The first line should contain \(N\), the second line should contain \(N-1\), and so on. The last line should contain \(1\).
Sample Input 1
8
Sample Output 1
8
7
6
5
4
3
2
1
Sample Input 2
1
Sample Output 2
1
Log in to write and submit code. Creating an account is free.