哪错了大神求指点
include <stdio.h>
int age(int s);
int i;
{
if (s==1)
return 10;
else
{
i=age(s-1)+2;
return i;
}
}
int main()
{
printf("第5个人的年龄是%d岁", age(5));
return 0;
}
include <stdio.h>
int age(int s);
int i;
{
if (s==1)
return 10;
else
{
i=age(s-1)+2;
return i;
}
}
int main()
{
printf("第5个人的年龄是%d岁", age(5));
return 0;
}
2015-08-28
举报