// File: add1.cpp // Example of Recursion: X up, Y down; No Accumulator #include using namespace std; int add(int x, int y); int main() { cout << add(5,2) << endl; } int add(int x, int y) { if (!y) // Base case: Y is 0 return(x); return(add(x+1,y-1)); }