본문 바로가기
파이썬

range 역순

by 주니코니 2023. 7. 2.
n = int(input())
for i in range(n, 0, -1): # n부터 1까지 역순
print(i)