Javatpoint Logo
Javatpoint Logo

Factorial program in C#

Factorial Program in C#: Factorial of n is the product of all positive descending integers. Factorial of n is denoted by n!. For example:

Here, 4! is pronounced as "4 factorial", it is also called "4 bang" or "4 shriek".

The factorial is normally used in Combinations and Permutations (mathematics).

Let?s see the factorial program in C# using for loop.

Output:

Enter any Number: 6
Factorial of 6 is: 720




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


B.Tech / MCA