daniil-vlasenko

8.7

Aug 9th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. def factor(a):
  2. z = 1
  3. for i in range(1,a+1):
  4. i = z*i
  5. z = i
  6. return z
  7.  
  8. a = int(input())
  9. print(factor(a))
Advertisement
Add Comment
Please, Sign In to add comment