Files
python/TangDou/LianXiTi50/23.cpp

13 lines
190 B
C++
Raw Normal View History

2025-08-30 18:35:01 +08:00
#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;
}