A repository I stole
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 regels
203 B

  1. def factorial(n):
  2. if n == 0:
  3. return 1
  4. else:
  5. return n * factorial(n-1)
  6. def main():
  7. num = input()
  8. total = factorial(int(num))
  9. print (total)
  10. if __name__== '__main__':
  11. main()