Factorial of Number is computed num=int(input("Enter a number:")) fact=1 for i in range(1,num+1): fact*=i print("Factorial of the Given Number: ",fact)
Input: Python Program for Factorial of Number Enter a number:5
Output: Factorial of the Given Number: 120