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