fork download
  1. def fact(n):
  2. f = 1
  3. for i in range(1,n+1):
  4. f *= i
  5. print(f)
  6. n = int(input())
  7. fact(n)
Success #stdin #stdout 0.02s 9452KB
stdin
6
stdout
720