习 题 P167: 1、2、3、5、6、7、8、9、10 P167-6 #include stdio.h void main() { int i,j,m; int a[15]={2,4,6,7,9,11,12,14,15,16,19,21,24,25,34}; scanf(“%d”,x); /*键盘输入要查找的整数*/ i=0;j=14; while (i=j) {m=(i+j)/2; if(x==a[m]) {printf(“%d\n”, m+1);break; } if(xa[m]) i=m+1; else j=m-1; } if(ij) printf(“no this number”); } P167-7 #include stdio.h void main() {int i,j; for(i=1;i=5;i++) {for(j=1; j=2*i; j++) printf(“ ”); printf(“*****\n”); } } P167-8 #incl
您可能关注的文档
- ”网络安全“主题班会.ppt
- 《Dreamweaver网页设计》第15章站点管理.ppt
- 《高三英语看图作文讲评汇编6》.ppt
- 《计算机基础》课程情况介绍.ppt
- 《计算机基础理论》第二讲计算机软件基础.ppt
- 《科技信息资源与网络检索》第二讲信息资源.ppt
- 《乐高城市救援队》安卓版手机游戏评测.pptx
- 《面向对象的程序设计语言——C++》课件--第7章文档和视图.ppt
- 《网络化办公教程与上机指导》第22课网络安全.ppt
- 《网络社会学》教学大纲.ppt
- PCB钻针行业深度量价逻辑竞争格局产业链及相关公司深度梳理.docx
- 2026 深圳Agent 沙龙材料分享 Vibe Chaos 面向生产集群的 Agent 工程实践.docx
- 2026年商业相关性报告 2026 Commerce Relevance Report Conversational Commerce Is Changing How Shoppers Decide.docx
- 2026 年上半年中药股二级市场走势情况分析及下半年展望.docx
- 2025年外卖和拼车应用报告 State of Food Delivery & Rideshare Apps Report 2025 Unlock the latest trends and insights into Food Delivery & Rideshare mobile apps and digital advertising.docx
- 2026年零售商业现状报告头部零售品牌实现年度突破性业绩的实施路径分析 The State of Retail Commerce 2026 How the strongest retail commerce brands will execute record-breaking performance in 2026-Fospha.docx
- 2026年营销科技现状报告 State of Martech 2026.docx
- pwc -通过卓越运营和供应链弹性加速航空航天和国防制造 Accelerating aerospace and defence manufacturing through operational excellence and supply chain resilience.docx
- 2026黄金市场入门指南市场规模与产业结构 Gold Market Primer Market size and structure.docx
- 2026+人工智能趋势报告+AI+Trends.docx
原创力文档

文档评论(0)