print('문자열'*곱하는횟수)를 사용하여 출력하였다.
N = int(input()) for i in range(N): spaceCnt = N-i-1 print(' '*spaceCnt,end='') print('*'*(i+1))