Find factorial of given number in Python

fact=1 

num=int(input("enter the number:"))

while(num>0):

    fact=fact*num

    num=num-1

print("Factorial of given number=",fact)



Comments