a= int(input())
line= 2*a-1
star= 1
space= a-1
for i in range(line):
if i==a:
star2= star-2
line2= a-1
space2= a-2
break
print(" "*space,"*"*star,end= "")
print()
star+=2
space-=1
for j in range(line2):
print(" "*space2,"*"*star2,end= "")
print()
space2+=1
star-=1
댓글
2개복사 붙여넣기를 하면서 두번째 반복문을 소홀히 하지 않았나 생각해보세요~~
https://homeworkmania.codes/problem/944/
빠이
댓글 쓰기
댓글을 작성하려면 로그인하세요.