Question: #include using namespace std; int funcB(int); int funcA(int n) { if (n
#include
using namespace std;
int funcB(int);
int funcA(int n) {
if (n <= 1)
return 1;
else
return n + funcB(n - 2);
}
int funcB(int n) {
if (n <= 3)
return 1;
else
return n * funcA(n - 3);
}
int main() {
int num = 11;
cout << funcA(num);
return 0;
}
Why is the value 101? A step by step explaination will be great!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
