⌨️ Algorithms/백준

[Python] 백준 2741번_N 찍기

monzheld 2022. 6. 29. 11:58

https://www.acmicpc.net/problem/2741

 

2741번: N 찍기

자연수 N이 주어졌을 때, 1부터 N까지 한 줄에 하나씩 출력하는 프로그램을 작성하시오.

www.acmicpc.net

 

n = int(input())

for i in range(1, n+1):
  print(i)