Javatpoint Logo
Javatpoint Logo

Python Program to Find the Factorial of a Number

What is factorial?

Factorial is a non-negative integer. It is the product of all positive integers less than or equal to that number for which you ask for factorial. It is denoted by exclamation sign (!).

For example:

The factorial value of 4 is 24.

Note: The factorial value of 0 is 1 always. (Rule violation)

See this example:

The following example displays the factorial of 5 and -5.

Output:

Python Condition And Loops7



Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA