fork download
  1. n = int(input())
  2. m = 1
  3.  
  4. for i in range(1, n + 1):
  5. m = m * i
  6.  
  7. print(m)
Success #stdin #stdout 0.13s 14204KB
stdin
3
stdout
6