In this tutorial, we are going to make a C Program to Print factorial using Recursion with step by step full complete explanation.

C Program to Print factorial using Recursion

Program Code

#include<stdio.h>
#include<conio.h>
int Factorial(int input);
void main()
{
       int n;

printf(“Enter first number:”);
scanf(“%d”, &n);


printf(“Factorial of %d is %d”, fn, Factorial(n));

getch();
}
int Factorial(int input)
{
       if(input==0)
           return 1;
       else
            return input*Factorial(input-1);
       
}


Output

C Program to Print Factorial using Recursion