C# Program to Find the Factorial of a Number – C# Programming Example
Basic C# Console For Loop Loops / Iteration Statement

C# Program to Find the Factorial of a Number

In this article, you’ll learn to find the factorial of a number and display it.

The factorial of a number is the product of all the integers from 1 to that number.

For example, the factorial of 6 (denoted as 5!) is 1*2*3*4*5 = 120. Factorial is not defined for negative numbers and the factorial of zero is one, 0! = 1.

Source Code:

Output:

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: