Answer in Brief
Write a program to find the factorial of the given number using recursion.
using namespace std;
int factorial(int); // Function prototype //
cout<<"\nEnter a number to find its factorial: ";
cin >> no;
cout << "\nFactorial of Number " << no <<" = " << factorial(no);
int factorial(int m)
if (m > 1)
Enter a number to find its factorial: 5
Factorial of Number 5 = 120
Concept: Recursive Function
Is there an error in this question or solution?