Program to find Factorial of a number using recursion in C++ Solution #include <iostream> using namespace std; int factorial(int n) { if(n==1) return 1; else return n*factorial(n-1); } int main()…
© Study Trigger. All Rights Reserved
Program to find Factorial of a number using recursion in C++ Solution #include <iostream> using namespace std; int factorial(int n) { if(n==1) return 1; else return n*factorial(n-1); } int main()…