'commit'
This commit is contained in:
13
TangDou/LianXiTi50/23.cpp
Normal file
13
TangDou/LianXiTi50/23.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#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;
|
||||
}
|
||||
Reference in New Issue
Block a user