【计算机类职业资格】全国计算机二级C语言上机试题27+2015年及答案解析.doc

上传人:jobexamine331 文档编号:1329349 上传时间:2019-10-17 格式:DOC 页数:2 大小:30KB
下载 相关 举报
【计算机类职业资格】全国计算机二级C语言上机试题27+2015年及答案解析.doc_第1页
第1页 / 共2页
【计算机类职业资格】全国计算机二级C语言上机试题27+2015年及答案解析.doc_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

全国计算机二级 C语言上机试题 27+2015年及答案解析(总分:30.00,做题时间:90 分钟)1.给定程序中,函数 fun的功能是:计算下式前 n项的和作为函数值返回。 例如,当形参 n的值为 10时,函数返回:9.612558。 请在程序的下划线处填入正确的内容并把下划线删除,使程序得出正确的结果。 注意:源程序存放在考生文件夹下的 BLANK1.C中。不得增行或删行,也不得更改程序的结构! 给定源程序: #include double fun(int n) int i; double s, t; /*found*/ s=_1_; /*found*/ for(i=1; i=eps) s+=t; n+; t=t*n/(2.0*n+1); return (s*2.0); main( ) double x; printf(“Input eps:“) ; scanf(“%lf“, printf(“/neps = %lf, PI=%lf/n“, x, fun(x); NONO(); )解析:

展开阅读全文
相关资源
猜你喜欢
  • IEC 61937-2-2007 Digital audio - Interface for non-linear PCM encoded audio bitstreams applying IEC 60958 - Part 2 Burst-info《数字音频.用于IEC 60958的非线性脉冲编码调制(PCM)编码音频位流的接口.第2部分 脉冲串信息 》.pdf IEC 61937-2-2007 Digital audio - Interface for non-linear PCM encoded audio bitstreams applying IEC 60958 - Part 2 Burst-info《数字音频.用于IEC 60958的非线性脉冲编码调制(PCM)编码音频位流的接口.第2部分 脉冲串信息 》.pdf
  • IEC 61937-6 Edition 2.1-2014 Digital audio - Interface for non-linear PCM encoded audio bitstreams applying IEC 60958 - Part 6 Non-linear PCM bitstreams according to the MPEG-2 AAC.pdf IEC 61937-6 Edition 2.1-2014 Digital audio - Interface for non-linear PCM encoded audio bitstreams applying IEC 60958 - Part 6 Non-linear PCM bitstreams according to the MPEG-2 AAC.pdf
  • IEC 61943-1999 Integrated circuits - Manufacturing line approval application guideline《集成电路 生产线批准应用指南》.pdf IEC 61943-1999 Integrated circuits - Manufacturing line approval application guideline《集成电路 生产线批准应用指南》.pdf
  • IEC 61947-1-2002 Electronic projection - Measurement and documentation of key performance criteria - Part 1 Fixed resolution projectors《电子投影.主要性能标准的测量和文件化.第1部分 固定分辨投影仪》.pdf IEC 61947-1-2002 Electronic projection - Measurement and documentation of key performance criteria - Part 1 Fixed resolution projectors《电子投影.主要性能标准的测量和文件化.第1部分 固定分辨投影仪》.pdf
  • IEC 61947-2-2001 Electronic projection - Measurement and documentation of key performance criteria - Part 2 Variable resolution projectors《电子投影 关键性能判据的测量和文件编制 第2部分:可变分辨力投影仪》.pdf IEC 61947-2-2001 Electronic projection - Measurement and documentation of key performance criteria - Part 2 Variable resolution projectors《电子投影 关键性能判据的测量和文件编制 第2部分:可变分辨力投影仪》.pdf
  • IEC 61950-2007 Cable management systems - Specifications for conduit fittings and accessories for cable installations for extra-heavy duty electrical steel conduit《电缆布线系统.超重型电器钢导管用导管配件和附件规范》.pdf IEC 61950-2007 Cable management systems - Specifications for conduit fittings and accessories for cable installations for extra-heavy duty electrical steel conduit《电缆布线系统.超重型电器钢导管用导管配件和附件规范》.pdf
  • IEC 61954 Edition 2.1-2013 Static VAR compensators (SVC) - Testing of thyristor valves《静止无功补偿器(SVC).晶闸管阀的试验》.pdf IEC 61954 Edition 2.1-2013 Static VAR compensators (SVC) - Testing of thyristor valves《静止无功补偿器(SVC).晶闸管阀的试验》.pdf
  • IEC 61954-2011 Static VAR compensators (SVC) - Testing of thyristor valves《静止无功补偿器(SVC).晶闸管阀的试验》.pdf IEC 61954-2011 Static VAR compensators (SVC) - Testing of thyristor valves《静止无功补偿器(SVC).晶闸管阀的试验》.pdf
  • IEC 61960-3-2017 Secondary cells and batteries containing alkaline or other non-acid electrolytes - Secondary lithium cells and batteries for portable applications - Part 3 Prismat.pdf IEC 61960-3-2017 Secondary cells and batteries containing alkaline or other non-acid electrolytes - Secondary lithium cells and batteries for portable applications - Part 3 Prismat.pdf
  • 相关搜索

    当前位置:首页 > 考试资料 > 职业资格

    copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
    备案/许可证编号:苏ICP备17064731号-1