본문 바로가기
카테고리 없음

백준 2741번 : N 찍기 _파이썬

by Saans 2021. 11. 21.

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)

별 찍기 모체

댓글