A repository I stole
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
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()