|
#include <iostream>
using namespace std;
#define int long long
//因为数值较大,所以要用long long
int t; //计数变量
int printSum(int a, int b) {
if (t == 0) {
return a * b;//递归终止条件
}
t = b;
printSum(a, b - 1);//递归
t-=1;
}
signed main() {
int a,b;
cin >> a >> b;
int ans = printSum(a,b);
cout << ans;
return 0;
}
包对的我跟你说^-^
|
|