Calculate 1/n! || Python
In this we are going to see a basic program to Calculate 1/n!  in Python Programming Language.


given_val = int(input("Enter Number : "))
factorial = 1

for i in range(1, given_val+1):
    factorial *= i

final_reslt = 1.0/factorial

print("The value of 1/n! with given n value --> ", given_val, "=", final_reslt)

# Coded By Dhiraj Shelke

#ENJOY CODING


Post a Comment

FOR ANY DOUBTS AND ERRORS FEEL FREE TO ASK. YOUR DOUBTS WILL BE ADDRESSED ASAP

Previous Post Next Post