信息系统实验报告电子版.docVIP

  • 143
  • 0
  • 约5.98千字
  • 约 13页
  • 2018-06-25 发布于河南
  • 举报
信息系统实验报告电子版

《C语言程序设计》实验报告 实验一 C程序的运行环境和运行一个C程序的方法 #includestdio.h void main() { printf(this is a C program.\n); } 实验结果this is a C program. 实验总结:由于粗心单词拼错,对于编程熟悉程度较差,无法独立写程 2).例1.2实验代码 #includestdio.h void main() { int a,b,sum; a=123;b=456; sum=a+b; printf(sum is %d\n,sum); } 实验结果sum is 579 实验总结:总是丢失语句,编写速度慢,无法自主独立编写程序 3).习题1.6实验代码 #includestdio.h void main() { int a,b,c,max; printf(please input a,b,c\n); scanf(%d,%d,%d,a,b,c); max=a; if (maxb) max=b; if (maxc) max=c; printf(The largest number is %d,max); } 实验结果 please input a,b,c 4,5,6 The largest number is 6Press any key to con

文档评论(0)

1亿VIP精品文档

相关文档