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