#include <iostream>#include <cmath>usingnamespace std;
intcustomFunction(int a, int b) {
if (b ==0) {
return a;
}
return a + customFunction(a, b-1);
}
intmain() {
int x, y;
cin >> x >> y;
int result = customFunction(x, y);
cout << pow(result, 2) << endl;
return0;
}
Time limit: 0
Quiz Summary
0 of 6 Questions completed
Questions:
Information
You have already completed the quiz before. Hence you can not start it again.