- 1
- 0
- 约2.54万字
- 约 38页
- 2018-09-25 发布于江苏
- 举报
二级教材参考答
三、上机改错题
2.24请指出以下C程序的错误所在#include stdio.h ;main( ); / * main function * /float r, s; /* /*r is radius*/,/*s is area of circular*/*/r = 5.0 ;s=3.14159 * r * r ;printf(%f\n,s); ※正确应为:#include 或 #includestdio.hmain( ) /* main function */{float r,s; /*r is radius, s is area of circular*/r = 5.0 ;s = 3.14159 * r * r ;printf(%f\n,s);}
(2.25) 请指出以下C程序的错误所在#include stdio.hmain /* main function */{float a,b,c,v; /*a,b,c are sides, v is volume of cube*/a = 2.0 ; b = 3.0 ; c = 4.0 v = a * b * c;printf(%f\n,v);}※正确应为:#includestdio.hmain( ) /* main function */{float a,b,c,v; /*
您可能关注的文档
最近下载
- Rise of the Planet of the Apes《猩球崛起(2011)》完整中英文对照剧本.docx VIP
- 新人教版小学三年级语文下册第七单元考试卷.doc VIP
- JTGE40—2007土工检测作业指导书.pdf VIP
- 2025年中药房面试试题及答案.doc VIP
- 人教版三年级数学下册第六单元 年、月、日1 年、月、日.pptx VIP
- 2026年全国高考英语作文预测(6篇范文+英汉互译+万能高分模板).docx VIP
- 【课后作业】人教版数学三年级下册第六单元《年、月、日》单元测试卷2.doc VIP
- 2025年小学数学人教版三年级下册第六单元《年,月,日》单元测试卷及答案.docx VIP
- 超级机器人大战AP超详尽攻略.pdf VIP
- 2026年普通高等学校招生全国统一考试新高考二卷物理试卷临考卷+答案.doc VIP
原创力文档

文档评论(0)