Advertisement
skashminzim

as15

May 8th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. n=int(input('Enter Number:'))
  2.  
  3. f=1
  4. if(n==0):
  5.     print('1')
  6. else:
  7.     while n>1:
  8.         f=f*n
  9.         n=n-1
  10.     print(f)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement