제곱한 수를 0부터 N번째 줄까지 출력
입력 예
5
출력 예
0
1
4
9
16
제출한 코드
n = int(input())
print(*[x**2 for x in range(n)], sep='\n')
'알고리즘 > 해커랭크' 카테고리의 다른 글
Kangaroo (0) | 2020.03.06 |
---|---|
Apple and Orange (0) | 2020.03.06 |
Grading Students (python3) (0) | 2020.02.29 |
Python If-Else Discussions (0) | 2020.02.27 |
Birthday Cake Candles(python3) (0) | 2020.02.26 |