Run ID:67642

提交时间:2024-03-17 11:40:46

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