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