Thursday, 7 March 2019

Write a Factorial Program using Recursion in C++

                    Program of Factorial using Recursion in C++

What are recursive functions?

Recursive functions are those functions that repeatedly calls itself directly or indirectly during execution .
                          

                                          Steps to write the program

1. Open a turbo c++ compiler or any other compiler.

2. Write the code given below .


#include<iostream.h>
#include<conio.h>

int Factorial(int x)  // Factorial Function  Coding
{
 if(x<=1)
 { return 1; }
 else {  return x*Factorial(x-1); }
}

👇 🌐 Top 10 Hosting for Developers in 2025: Fast, Reliable & Affordable

 Whether you’re a beginner building your first portfolio site or a professional developer deploying client projects, choosing the right host...