- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
C语言考题(C language examination questions)
C语言考题(C language examination questions)
1 o 2 + 4 + 8 +... + 512 and
# include stdio.h
Void main ()
{
Int I, sum = 0;
For (I = 2; I = 512; I * = 2)
The sum + = I;
Printf ( sum = % d , sum);
}
2. Enter ten Numbers from the keyboard, remove the two largest Numbers and the smallest two Numbers, and sum them
# include stdio.h
Void main ()
{
Int I, j, t = 0, a, [10].
Float ave.
For (I = 0; I 10; i++)
The scanf ( % d , a [I]);
For (I = 0; I 9; i++)
For (j = 0; j 9 -i; j++)
If (a [j] a [m + 1]) {t = a, a + 1 bonus to [j]. A [j + 1) = a, [j]. A [j] = t; };
For (I = 2, t = 0; I 8; i++)
T + = a, [I].
Ave = t / 6.0;
Printf ( ave = % 2 f , ave);
}
3. 2 times 2 + 44 + 66 + 88 + 100 100
# include stdio.h
Void main ()
{int sum = 0, I, t;
For (I = 2; I = 100; I + = 2)
{t = I * I; The sum + = t; }
Printf ( sum = % d , sum);
}
/ * the following segment is the number of statistical characters in the characters entered from the keyboard.
End the loop with a newline. Please fill in the blanks. * /
# include stdio, h
Void main ()
{int n = 0, c;
C = getchar ();
/ * * * * * * * * * * found * * * * * * * * * * /
While (c! = \ n)
{
/ * * * * * * * * * * found * * * * * * * * * * /
If (c = 0 c = 9) n++;
C = getchar ();
}
Printf ( % d , n);
}
5. / * -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
[programming]
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Function: enter a integer greater than 3 from the keyboard, call function fun to determine its prime number, and then output the corresponding conclusion in the main function
Information. (prime is only the number that can be divisible by 1 and itself)
7 is a prime. 8 is not a prime. Write the fun function.
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
您可能关注的文档
- 除斥期间(In addition to the period).doc
- 雾霾天气的危害与间质性肺炎的治疗方法有什么(What is the harm of haze weather and the treatment method of interstitial pneumonia).doc
- 餐饮职业经理人考试复习资料(Review materials for the catering professional managers).doc
- 餐饮业规划(Catering planning).doc
- 高一化学 简单分类法及其应用(High chemical simple classification and its application).doc
- 高一下学期化学练习一【永久免费】(Chemistry exercise 1 (permanent free)).doc
- 高一化学2(必修)第1章(原子结构与元素周期律)(Chemistry 2 (compulsory) chapter 1 (atomic structure and periodic law)).doc
- 高一化学离子方程式1(High chemical ion equation 1).doc
- 高一化学第二学期期末测试题(The final test of the second semester of chemistry).doc
- 高一物理必修一试题(Physics must take a test).doc
- 考点解析-苏科版八年级物理下册《力》专项攻克试卷(含答案详解).docx
- 考点解析-苏科版八年级物理下册《从粒子到宇宙》重点解析试题(含答案及解析).docx
- 考点解析-苏科版八年级物理下册《从粒子到宇宙》重点解析练习题(含答案详解).docx
- 考点解析-苏科版八年级物理下册《从粒子到宇宙》达标测试试题(含答案及解析).docx
- 考点解析-苏科版八年级物理下册《从粒子到宇宙》重点解析试卷(含答案详解版).docx
- 考点解析-苏科版八年级物理下册《从粒子到宇宙》达标测试试题(解析版).docx
- 考点解析-苏科版八年级物理下册《从粒子到宇宙》达标测试试卷(详解版).docx
- 考点解析-苏科版八年级物理下册《从粒子到宇宙》重点解析试卷(含答案详解版).docx
- 考点解析-苏科版八年级物理下册《从粒子到宇宙》综合训练试题(含详细解析).docx
- 考点解析-苏科版八年级物理下册《从粒子到宇宙》达标测试试卷(解析版).docx
最近下载
- 并网光伏电站项目工程现场电气二次施工方案.doc
- 英语新课标背景下:非纸笔测试在小学英语期末评价中的实践研究.pdf VIP
- 液体伤口敷料产品技术要求标准2023版.docx VIP
- 股市实战绝技汇总篇(精华).doc VIP
- 历年行情的十大牛股.doc VIP
- 安徽省六校联考暨安徽六校教育研究会2026届高三入学素质检测-物理试卷答案.docx VIP
- 基于Ansys CFX的风扇叶片双向流固耦合分析.docx VIP
- (高清版)DB1307∕T 334-2020 蛋鸡无抗养殖技术规范.pdf VIP
- 中小学教育班班通系统校级解决方案.doc VIP
- 涉税检举奖励制度的运行问题...于68份裁判文书的考察分析_金超.pdf VIP
文档评论(0)