Pages

Showing posts with label factorial program. Show all posts
Showing posts with label factorial program. Show all posts

C Program to Find Factorial of a Number

This is a simple C language program to find factorial of any number. In case you don't know what factorial is, factorial is the product of an integer and all the integers below it. For example:
5! = 1 * 2 * 3 * 4 * 5 = 120
The program first prompts for any integer. Then, finds the factorial using For Loop and prints the result.