Skip to content
Programmingoneonone
Programmingoneonone
  • CS Subjects
    • Internet of Things (IoT)
    • Digital Communication
    • Human Values
    • Cybersecurity
  • Programming Tutorials
    • C Programming
    • Data structures and Algorithms
    • 100+ Java Programs
    • 100+ C Programs
  • HackerRank Solutions
    • HackerRank Algorithms Solutions
    • HackerRank C problems solutions
    • HackerRank C++ problems solutions
    • HackerRank Java problems solutions
    • HackerRank Python problems solutions
  • Work with US
Programmingoneonone
Programmingoneonone
C program to print factorial using recursion program

C Program to Print Factorial using Recursion

YASH PAL, 31 July 202429 January 2026
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
C program to print factorial using recursion program

Program Code to print factorial using recursion.

#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", n, 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
c coding problems solutions cPrograms

Post navigation

Previous post
Next post

Pages

  • About US
  • Contact US
  • Privacy Policy

Follow US

  • YouTube
  • LinkedIn
  • Facebook
  • Pinterest
  • Instagram
©2026 Programmingoneonone | WordPress Theme by SuperbThemes