【计算机类职业资格】国家三级(网络技术)机试-试卷39及答案解析.doc

上传人:eveningprove235 文档编号:1331075 上传时间:2019-10-17 格式:DOC 页数:2 大小:29.50KB
下载 相关 举报
【计算机类职业资格】国家三级(网络技术)机试-试卷39及答案解析.doc_第1页
第1页 / 共2页
【计算机类职业资格】国家三级(网络技术)机试-试卷39及答案解析.doc_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

1、国家三级(网络技术)机试-试卷 39 及答案解析(总分:2.00,做题时间:90 分钟)一、程序设计题(总题数:1,分数:2.00)1. (分数:2.00)_国家三级(网络技术)机试-试卷 39 答案解析(总分:2.00,做题时间:90 分钟)一、程序设计题(总题数:1,分数:2.00)1. (分数:2.00)_正确答案:(正确答案: )解析:解析:首先定义变量并赋值,包括表示级数的整型变量 a1、a2,赋初值 1,表示级数前 n 项的和s,其初值为 2,表示级数的第 n 项 t,循环变量 i,级数 n 项赋初值 1。 采用 for 循环,循环变量 i从 0 开始依次递增到 2。在循环体中对

2、m 的值扩大 10 倍,当级数前 n 项的和 s 小于 m 时,根据级数的第n 项等于第 n-2 项与 2 倍的第 n-1 项的和,把表达式 a1+2*a2 的值赋给变量 t。然后把级数前 n-1 项的和s 加上第 n 项的值 t 赋给变量 s,求得级数前 n 项的和赋给变量 s。把 n 的值加 1,在下次循环中计算级数第 n+1 项的值,把变量当前级数第 n-1 项的值 a2 赋给第 n-2 项 a1,把当前的第 n 项 t 的值赋给第 n-1 项a2。当级数前 n 项的和 s 大于或等于 m 时,退出 while 循环。在屏幕上输出变量 m 和 n 的值,并把求的 n值赋给数组元素 bi,进入下一次 for 循环。

展开阅读全文
相关资源
猜你喜欢
  • STAS 6200 15-1983 NATURAL STONES FOR CONSTRUCTIONS Dctcrmination of freezing-thaw- ing-behaviour《建筑用天然石材 冻融性能测定 》.pdf STAS 6200 15-1983 NATURAL STONES FOR CONSTRUCTIONS Dctcrmination of freezing-thaw- ing-behaviour《建筑用天然石材 冻融性能测定 》.pdf
  • STAS 6200 16-1983 NATURALE STONES FOR CONSTRUCTIONS Indica i ons for assessing the behaviour to weathering《建筑用天然石料 评估气象变化 》.pdf STAS 6200 16-1983 NATURALE STONES FOR CONSTRUCTIONS Indica i ons for assessing the behaviour to weathering《建筑用天然石料 评估气象变化 》.pdf
  • STAS 6200 17-1977 NATURAL STONES FOR BUILDINGS Determination of behaviour at atmospheric agents action《建筑用天然石材 大气能因作用时的表现测定 》.pdf STAS 6200 17-1977 NATURAL STONES FOR BUILDINGS Determination of behaviour at atmospheric agents action《建筑用天然石材 大气能因作用时的表现测定 》.pdf
  • STAS 6200 2-1971 SI1APED NATURAL STONB FOR BUILDING Methods of physieal mechanical and mineralogical tests General provisions for mechanical tests《建筑用成形天然石材 物理、机械和矿物测试方法 机械测试一般规定 》.pdf STAS 6200 2-1971 SI1APED NATURAL STONB FOR BUILDING Methods of physieal mechanical and mineralogical tests General provisions for mechanical tests《建筑用成形天然石材 物理、机械和矿物测试方法 机械测试一般规定 》.pdf
  • STAS 6200 3-1981 NATURAL STONES FOR BUILDING Sampling preparation of thin sections and test pieces《建筑用天然石材 用于薄片和测试件的样品 》.pdf STAS 6200 3-1981 NATURAL STONES FOR BUILDING Sampling preparation of thin sections and test pieces《建筑用天然石材 用于薄片和测试件的样品 》.pdf
  • STAS 6200 4-1974 NATURAL STONES FOR Bl'ILDING Dclermination of petrographical aud mincralogical charactorislies《建筑用天然石材 岩相学和矿物学特征 》.pdf STAS 6200 4-1974 NATURAL STONES FOR Bl'ILDING Dclermination of petrographical aud mincralogical charactorislies《建筑用天然石材 岩相学和矿物学特征 》.pdf
  • STAS 6200 4-1981 NATURAL STONE FOR BUILD1NGS Specifk-alions for determination of petrof raphyic and mineralogic charac- teristics and chemica] composition《建筑用天然石材 物理、矿物特征和化学成分分析测定规.pdf STAS 6200 4-1981 NATURAL STONE FOR BUILD1NGS Specifk-alions for determination of petrof raphyic and mineralogic charac- teristics and chemica] composition《建筑用天然石材 物理、矿物特征和化学成分分析测定规.pdf
  • STAS 6200 5-1971 SHAPED NATURAL STONE FOR BUILDING Methods of physical mechanical and mineralogical test Determination of the compression strength《成形建材用天然石料 物理、机械和矿物学测定 压缩强度测定 》.pdf STAS 6200 5-1971 SHAPED NATURAL STONE FOR BUILDING Methods of physical mechanical and mineralogical test Determination of the compression strength《成形建材用天然石料 物理、机械和矿物学测定 压缩强度测定 》.pdf
  • STAS 6200 5-1991 Natural stones for buildings Compression stength determination and softening coefficient calculus《建筑用天然石材 抗压强度和软化系数计算 》.pdf STAS 6200 5-1991 Natural stones for buildings Compression stength determination and softening coefficient calculus《建筑用天然石材 抗压强度和软化系数计算 》.pdf
  • 相关搜索

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

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