13 lines
190 B
C++
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;
|
|
} |