请问是哪里出问题了
#include <stdio.h>
int peoplenumber(n)
{
int age;
if(n==1)
age==10;
else
age==peoplenumber(n-1)+2;
return age;
}
int main()
{
int fifthage = peoplenumber(5);
printf("第5个人的年龄是%d岁", fifthage);
return 0;
}
#include <stdio.h>
int peoplenumber(n)
{
int age;
if(n==1)
age==10;
else
age==peoplenumber(n-1)+2;
return age;
}
int main()
{
int fifthage = peoplenumber(5);
printf("第5个人的年龄是%d岁", fifthage);
return 0;
}
2019-01-29
举报