- 8
- 0
- 约1.8万字
- 约 76页
- 2018-10-12 发布于江苏
- 举报
第六章 循环结的C程序设计
第六章 循环结构的C程序设计 第一节 循环的基本概念 第二节 while语句 第三节 do-while语句 第四节 for语句 第五节 break、continue、goto语句 第六节 几种循环语句比较 第七节 循环的嵌套 第八节 程序举例 循环的必要性 int result1,result2,result3; int result4,result5; result1 = 1 * 10; printf(1 × 10 = %d \n,result1); result2 = 2 * 10; printf(2 × 10 = %d \n,result2); result3 = 3 * 10; printf(3 × 10 = %d \n,result3); result4 = 4 * 10; printf(4 × 10 = %d \n,result4); result5 = 5 * 10; printf(5 × 10 = %d \n,result5); 循环的必要性 C 语言中的各种循环 例:分析程序的运行结果 #include stdio.h main ( ) { int i=1,sum=0; while ( i=100 ) printf(“i=%d,sum=%d”,i,sum += i); i++; printf(”Sum=%d\n”,su
您可能关注的文档
最近下载
- DB 61∕T 5121-2025 建筑工程资料管理规程.docx VIP
- DB11∕T 695-2025 建筑工程资料管理规程.docx
- 理想 MV7790 MV9790 7790 9790 速印机中文维修手册.pdf VIP
- 医用高压灭菌锅安全培训课件.pptx VIP
- 文件不能复制的解决办法.doc VIP
- 无土栽培技术课件(共26张PPT)《蔬菜生产技术》同步教学(湖南科技出版社).pptx VIP
- Q-CR 9219-2015铁路隧道施工抢险救援指南_(高清-无水印).pdf VIP
- 2026广东梅州市高校毕业生基层公共就业创业服务岗位招募63人考试模拟考试及答案解析.docx VIP
- stm模块培训bt-s100印章机课件.pptx VIP
- 新北师大版8年级上册物理全册课件(2024年秋新版教材).pptx
原创力文档

文档评论(0)