#include <stdio.h>
int getAge(people)
{
int age;
if(people==1)
return 10;
}
else
age=getAge(people-1)+2;
return age;
int main()
int fifthage=getAge(5);
printf("第5个人的年龄是%d岁", fifthage);
return 0;
哪里出错了呢?
luckymore
help_zebedee
相关分类