int year(int n){
int years;
if(n==1)
years = 10;
else
years = year( n - 1 ) + 2;
printf("第%d个人年龄是%d岁\n",n,year);
return years;
}
int main(){
printf("第五个人年龄是%d岁",year(5));
Allen_Qiu
慕的地6079101
慕沐9379340
半枯
相关分类