Learning path · Programming Foundations with Python
← Back to lesson · Loops카운트다운 출력하기
Unrated
한국어
Language
Contribute a translation- Time limit
- 1000 ms
- Memory limit
- 256 MB
- Submissions
- 2
- Correct
- 2
- Solved by
- 2
- AC rate
- 100.000%
Statement
정숫값 하나를 전달받아 그 수부터 1까지 1씩 줄여 가며 출력하는 함수 g()를 설계하시오.
Input
첫째 줄에 정수 $n$이 주어진다. ($1 \le n \le 100$)
Output
$n$부터 1까지 1씩 줄여 가며 한 줄에 하나씩 출력한다.
Examples
Sample input 1
5
Sample output 1
5 4 3 2 1
Sample input 2
1
Sample output 2
1
Tags
No tags yet