Advertisement
dream_4ild

9-И-3 ex.5

Jan 24th, 2021
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. a=int(input())
  2.  
  3. def dl(a):
  4.     '''a: integer'''
  5.     n = 0
  6.     while a != 0:
  7.         n += 1
  8.         a //= 10
  9.     return n
  10.  
  11. def fuct(a):
  12.     ans=1
  13.     for i in range(1,a+1):
  14.         ans*=i
  15.     return ans
  16. print(fuct(dl(a)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement