본문 바로가기

[SW][BEAKJOON]/[SW][BEAKJOON][반복문]

[BEAKJOON][반복문][2741][Python] N 찍기

반응형

PROBLEM

  - Link

Approach to the problem

  - comprehension 코드

[print(i) for i in range(1, int(input())+1)]

Code

n = int(input())

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

End

  - 

반응형