《c语言程序设计》复习题库(C programming language review questions library).docVIP

《c语言程序设计》复习题库(C programming language review questions library).doc

  1. 1、本文档共23页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  5. 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  6. 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  7. 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  8. 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
《c语言程序设计》复习题库(C programming language review questions library) C programming language review questions library 1. Calculate the value of the following formula. T=1/1! +1/2! +1/3! +...... +1/m! When m=5 results (press four to five, keep 3 decimal places). (Note: all variables are defined by the float data type!) Answer: 1.717 2. Fill in the blanks: use * to output the letter C. #include stdio.h #include conio.h (main) { _____________ Printf? (*\n); _____________? _____________ Getch?; } 3, 8232, and 9678, and their numbers, ten, 100, 000, are multiples of 15, 8+2+3+2=15,9+6+7+8=30. Write programs to find all the odd numbers of four digits, the sum of the numbers (the sum of the numbers is 15 multiples). Note: all variables are defined with the long data type! Answer: 1533459 4, / * function following procedure is: to calculate and output less than 700 of the 10 largest natural number can be divisible by 13 or 17 and. Please correct the errors in the program and run, and finally give the correct results of the program running. (Note: there is only one mistake!) Answer: 6591. #include stdio.h Void, main () { Int, total=0, mc=1, k=700; Int, pm[10], count=0; While ((k=2) mc=10) { If ((k%13==0) || (k%17==0)) { Pm[mc] = k; Mc++; } K--; } For (k=1; k=10; k++) Total = pm[k-1]; Printf (%d\n, total); } 5, seek x = 1+1/5+1/7+1/9+... The approximate value of the last item is less than 10-5. 6. Calculate the A20 value of the following formula. A1=1, A2=1/ (1+A1), A3=1/ (1+A2), A4=1/ (1+A3),... (four, five, 10 decimal places). Answer: 0.6180339850 7, seek the sum of odd numbers that [101600] can be divisible by 7. Answer: 90965 8, function mystrlen (char *s) function is to find the string s length. Fill in the blanks, please. Int mystrlen (char *s) {int num=0; {____ (while);} Return (); } The sum between 9 and [100500] satisfies the sum divided by 7 over 5 divided by 5 more than 3 by 3 1. Answer: 1042 10, seek the number of all prime numbers between [100999]. Answer: 143 11, wri

您可能关注的文档

文档评论(0)

f8r9t5c + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

版权声明书
用户编号:8000054077000003

1亿VIP精品文档

相关文档