Header Ads Widget

Write a python program to find factorial of a given number.

How to find factorial of a number:-

                                                         we can find factorial of a number by multiplying from 1 to that number.

ex:-  5!= 1*2*3*4*5=120



num=int(input("enter a number"))
for i in range(1,num+1):
print("Factorail of the number is: ",fact)


enter a number5
Factorail of the number is: 120