Python Program to Find the Factorial of a Number

In this example, we will write a simple program to take input number from the user and display the factorial of the number. To better understand this example, make sure you have knowledge of the following tutorials:-

The factorial of a positive integer n, denoted by n!, is the product of all positive integers less than or equal to n.

Python Program to Find the Factorial of a Number

The output of the above program is:-

Enter a number: 5
The factorial of 5 is 120
SHARE Python Program to Find the Factorial of a Number

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

Share