fork download
  1. def Factorial(n):
  2. if n == 0:
  3. return 1
  4. else:
  5. return n * Factorial(n - 1)
  6.  
  7. number = 5
  8. print(Factorial(number))
Success #stdin #stdout 0.01s 7112KB
stdin
Standard input is empty
stdout
120