알고리즘
(CodeUp) 코드업 1954 - Python - (재귀함수)삼각형 출력하기 2
e_yejun
2021. 3. 20. 16:58
def recursion(n):
if n < 2:
return '*'
else:
return '*' * n + '\n' + recursion(n-1)
n = int(input())
result = recursion(n)
print(result)