Python Program:

- To print factorial of a number

Example:

User Input: 5

Output:
Factorial of 5 : 120

num=int(input("Enter your number : "))
fact=1
for i in range(1, num+1):
  fact*=i
print("Factorial of ",num," : ",fact)

Output:

  Enter your number : 3
  Factorial of 3 : 6
Program
number

You should know first :

Factorial of N : 1*2*3*4.....*N
Factorial of 0 : 1
for i in range(1, num+1):
  fact*=i
Concept

Coming Soon !

Quick
Tutorial

Quote

Sometimes it’s the smallest decisions that can change your life forever.