fork(1) download
  1. a = int(input())
  2.  
  3. fact = 1
  4. if(a == 0):
  5. print("1")
  6. else:
  7. for i in range(a):
  8. fact = fact * i
  9. fact *= a
  10. print(fact)
Success #stdin #stdout 0.04s 9804KB
stdin
Standard input is empty
stdout
1
0