#include <stdio.h>
int peopleage(n)
if(n==1)
int age;
{
age=10;
return 1;
}
else
age= peopleage(n-1)+2;
return age;
int main()
fifth=peopleage(5);
printf("第5个人的年龄是%d岁", fifth);
return 0;
Lemon156
望远
onemoo
相关分类