标准递归

王金檐  •  1个月前


#include<bits/stdc++.h> 
using namespace std; 

int t(int n,int i){ 
if(i>1){ 
 t((n+1)*2,i-1); 
}else{ 
 return n; 


int main(){ 
cout<<t(1,10); 
return 0; 

 


评论: