Advertisement
pacho_the_python

Untitled

Feb 10th, 2022
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. def factorial(num):
  2.     result = num
  3.     for num in range(num - 1, 0, -1):
  4.         result = result * num
  5.     return result
  6.  
  7.  
  8. num1 = int(input())
  9. num2 = int(input())
  10.  
  11. division = factorial(num1) / factorial(num2)
  12.  
  13. print(f"{division:.2f}")
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement