[填空题] 以下程序是计算学生的年龄。已知第一位最小的学生年龄为10岁,其余学生的年龄一个比一个大2岁,求第5个学生的年龄。
#include <stdio.h>
age(intn)
int c;
if(n==1) c=10;
else c= (10) ;
return(c);
void main()
int n=5;
printf("age:%d", (11) );
正确答案:
2+age(n-1)

[填空题] 以下程序是计算学生的年龄。已知第一位最小的学生年龄为10岁,其余学生的年龄一个比一个大2岁,求第5个学生的年龄。
#include <stdio.h>
age(intn)
int c;
if(n==1) c=10;
else c= (10) ;
return(c);
void main()
int n=5;
printf("age:%d", (11) );
正确答案:
2+age(n-1)
上一篇 [填空题] 阅读程序: Private Sub Form
下一篇 [填空题] 执行以下程序段,并输入1.23,则程序的输出结果应是 。 N=Str(InputBox("请输入一个实数:")) p=InStr(N,".&qu