1. 문제
https://www.acmicpc.net/problem/10872
2. 풀이
def fact(n):
if n == 0:
return 1
return n * fact(n-1)
print(fact(int(input())))
이 블로그는 무료로 제공되고 있으며,
광고 수익은 제가 치킨을 먹는 데 큰 도움이 됩니다! 🍗
광고 차단을 해제해주시면 더 맛있는 치킨을... 아니,
더 좋은 콘텐츠를 제공할 수 있습니다! 😊
💡 Tip: 치킨 한 마리가 제 한 달 광고 수익입니다 😂
https://www.acmicpc.net/problem/10872
def fact(n):
if n == 0:
return 1
return n * fact(n-1)
print(fact(int(input())))