DAY 6 of PYTHON top 100 questions : from Basic to Advanced !!
Write a Python program to find the factorial of a given number:
n=int(input('Enter the number : '))
fact=1
for i in range(1,n+1):
fact=fact*i
print(fact)
Output :
Enter the number : 6
720
This is a Python program to calculate the factorial o...
priyachakraborty.hashnode.dev2 min read