C program to find factorial of a number.

Problem statement

Write a program to take a number as an input from user and find the factorial of that number.

How to find factorial of a number

Factorial of a non-negetive number is denoted by n!.
Factorial of a number n is the product of all positive integers less than or equal to n.
For example:

Note: Factorial of a 0! = 1.
 

C program to find factorial of a given number

Output

 
 
 

C Program to find factorial of a number using recursion

What is recursion?

The process in which a function calls itself directly or indirectly is called recursion.
And this function is called as a recursion function.

Output

Help others by sharing the content!

Leave a Comment

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