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.11s 14132KB
stdin
5
stdout
120