[PYTHON] 백준_2438,2439

별 찍기 - 1,2

Posted by iheese on October 22, 2021 · 1 min read
#백준2438
n=int(input())

for i in range(1,n+1):
  for j in range(1,i+1):
    print('*',end="")
  print("")

#3
*
**
***
#백준2439
n=int(input())

for i in range(1,n+1):
  print(" "*(n-i)+"*"*i)

#4
   *
  **
 ***
****

신박하고 재밌는 문제였다.