学生实验报告
学号 : 日期 : 2014-06-22
}
运行结果:
2、阅读下面程序并执行,理解程序并记录程序运行结果#include "stdio.h"
void main()
{
int a=2,i;
for (i=0;i<3;i++)printf("%4d",f(a));
}
f(int a)
{
int b=0;
int c=3;
b++;
c++;
return(a+b+c);
}
运行结果:
3、调试运行教材146页-156页例7.1-例7.3页程序,理解并掌握程序改进所采用的程序设计技术。
7.1题
}
运行结果:
7.2题
#include "stdio.h" long Fact(int n); int main()
{
int m;