알고리즘/백준
[Python] 백준 2742번 - 기찍 N
소꿍
2020. 6. 9. 15:13
https://www.acmicpc.net/problem/2742
2742번: 기찍 N
자연수 N이 주어졌을 때, N부터 1까지 한 줄에 하나씩 출력하는 프로그램을 작성하시오.
www.acmicpc.net
n = int(input())
numbers = []
for i in range(1, n+1):
numbers.append(i)
numbers.reverse()
for i in numbers:
print(i)