백준문제풀이/재귀
10872
포비용
2023. 1. 29. 18:47
import sys
sys.stdin = open("input.txt","rt")
a = int(input())+1
def factorial(x):
result = 1
if x > 0:
result = x * factorial(x-1)
return result
print(factorial(a))