组合题6 个小题
已作答 0 / 6
1#include <iostream>2#include <cmath>3using namespace std;4 5int customFunction(int a, int b) {6 if (b == 0) {7 return a;8 }9 return a + customFunction(a, b-1);10}11 12int main() {13 int x, y;14 cin >> x >> y;15 int result = customFunction(x, y);16 cout << pow(result, 2) << endl;17 return 0;18}19 (4 分)若将 customFunction 函数改为 return a + customFunction(a-1, b-1);,并输入 3 3,则程序的最终输出为( )。