Files
HuangHai 1f397eca87 'commit'
2025-08-30 18:35:01 +08:00

13 lines
190 B
C++

#include <bits/stdc++.h>
using namespace std;
int age(int n) {
if (n == 1) return 10;
return age(n - 1) + 2;
}
int main() {
cout << age(5) << endl;
return 0;
}