Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def fun():
- print("Enter Your Number")
- a=int(input())
- fact = 1
- for i in range(a):
- fact=fact*(i+1)
- print("Your Factoril is ",+fact)
- def fun2():
- print("Enter Your Number")
- b=int(input())
- if b==1:
- return 1
- print(b)
- else:
- b= b*(b-1)
- print("Your Factorial is ",+ b)
- fun()
- fun2()
Add Comment
Please, Sign In to add comment