[BOJ / Python] 2444 별 찍기 -7

도니·2023년 4월 4일

BOJ / Python

목록 보기
35/105
post-thumbnail

문제

백준 2444 별 찍기 -7

코드

#BOJ 2444 별 찍기 -7

n = int(input())
for i in range(1, n):
    print(' '*(n-i) + "*"*(2*i-1))
for i in range(n, 0,-1):
    print(' '*(n-i) + "*"*(2*i-1))
profile
Where there's a will, there's a way

0개의 댓글