def recursion(n):
if n==1:
return '*'
else:
return recursion(n-1) + '\n' + '*' * n
n = int(input())
result = recursion(n)
print(result)
알고리즘
def recursion(n):
if n==1:
return '*'
else:
return recursion(n-1) + '\n' + '*' * n
n = int(input())
result = recursion(n)
print(result)