fork download
  1. iloczyn = 1
  2. a = int(input())
  3. c = 1
  4. if a < 0: print("asymptota funkcji gamma zatem niemożliwe do wyliczenia")
  5. if a == 0: print("1")
  6. else:
  7. for i in range(1,a+1):
  8. iloczyn = c * iloczyn
  9. c = c + 1
  10. print(iloczyn)
Success #stdin #stdout 0.07s 14144KB
stdin
5
stdout
120