Factorial of a number using recursion.Factorial can be denoted by the symbol ‘!’.This is known as a factorial. The number 5 × 4 × 3 × 2 × 1 is written as 5! which is read as ‘five factorial’.A recursive function is one that solves its task by calling itself on smaller pieces of data.

## Find Factorial of a number using recursion in C program

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | #include<stdio.h> int find_factorial(int); int main() { int num, fact; //Ask user for the input and store it in num printf("\nEnter any integer number:"); scanf("%d",&num); //Calling our user defined function fact =find_factorial(num); //Displaying factorial of input number printf("\nfactorial of %d is: %d",num, fact); return 0; } int find_factorial(int n) { //Factorial of 0 is 1 if(n==0) return(1); //Function calling itself: recursion return(n*find_factorial(n-1)); } |

**OUTPUT of Factorial of a number using recursion in C**

You can learn about Factorial program in C using Function here and for more quires go to quora