#include <stdio.h>
int peopleage(n)
{
int age;
if(n==1)
age=10;
else
age=peopleage(n-1)+2;
return age;
}
int main()
int peopleage(5);
printf("第5个人的年龄是%d岁",peopleage(5));
return 0;
在主函数内,被调函数peopleage 前不能用加 int