[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

Javatpoint.com is changed to TpointTech.com

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