#include #include using namespace std; // Recursive function. long multiply(int i, int j) { // Base cases. if (i == 0) return 0; if (i == 1) return j; // Recursive case. return multiply(i - 1, j) + j; } int main() { int n1 = 6; int n2 = 9; long product = multiply(n1, n2); cout << "The product of " << n1 << " and " << n2 << " is " << product << endl; }