[填空题] 以下程序是计算学生的年龄。已知第一位最小的学生年龄为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)问题解析:
解析无上一篇 [单项选择题] Visual Basic中的控件分为两类,―类是ActiveX控件,另一类是( )。
下一篇 [单项选择题] 有如下程序: #include<stdio.h> void main() char ch[2][5]= "6937","8254" ,