repl.it
@HappyFakeboulde/

recursive factorial thingy

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
def factorial(n):
	if n == 0:
		return 1
	else:
		return n * factorial(n - 1)
print(factorial(int((input(), __import__("sys").setrecursionlimit(65536))[0])))