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

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

国家三级(网络技术)机试-试卷 80 及答案解析(总分:2.00,做题时间:90 分钟)一、程序设计题(总题数:1,分数:2.00)1. (分数:2.00)_国家三级(网络技术)机试-试卷 80 答案解析(总分:2.00,做题时间:90 分钟)一、程序设计题(总题数:1,分数:2.00)1. (分数:2.00)_正确答案:(正确答案: )解析:解析:首先定义一个循环变量 i,以及分别用来存放四位数分解之后各位数的变量 qw(千位)、bw(百位)、sw(十位)和 gw(个位)。 通过 for 循环依次对数组中的每个四位数进行分解,循环初值为 1 000,终值为 5 000,每循环一次,循环变量 i 的值加 1。每分解一个四位数,根据题目要求,判断其“千 位+百位=十位+个位”的条件是否满足,同时判断“(千位+百位)=(个位-千位)*10”的条件是否满足,两个条件之间用&运算符进行连接。当同时满足以上两个判断条件时,计数变量 cnt 的值加 1,同时将该四位数累加到求和变量 sum 中,最终得到满足条件的四位自然数个数 cnt 及它们的和 sum。 本题中 cnt 和sum 变量在源程序中已经定义,在该子程序中就不需要再重新定义了。

展开阅读全文
相关资源
猜你喜欢
  • GOST R 25645 226-1999 Space crew radiation safety during space flight Test of shield efficiency of crew General requirements《太空飞行期间宇航员的辐射安全 宇航员保护有效性测试 一般要求》.pdf GOST R 25645 226-1999 Space crew radiation safety during space flight Test of shield efficiency of crew General requirements《太空飞行期间宇航员的辐射安全 宇航员保护有效性测试 一般要求》.pdf
  • GOST R 25645 332-1994 Polimeric materials for spacecrafts with nuclear reactor Requiremens to radiation tests《制造带核反应器宇宙飞船所用的聚合材料 辐射试验要求》.pdf GOST R 25645 332-1994 Polimeric materials for spacecrafts with nuclear reactor Requiremens to radiation tests《制造带核反应器宇宙飞船所用的聚合材料 辐射试验要求》.pdf
  • GOST R 25645 333-1994 Aerophotographic films Radiation resistance norms《航空摄影胶片 防辐射规范》.pdf GOST R 25645 333-1994 Aerophotographic films Radiation resistance norms《航空摄影胶片 防辐射规范》.pdf
  • GOST R 25645 334-1994 Irradiated aerophotographic films Method of chemical photographic processing《照射过的航空摄影胶片 化学摄影处理法》.pdf GOST R 25645 334-1994 Irradiated aerophotographic films Method of chemical photographic processing《照射过的航空摄影胶片 化学摄影处理法》.pdf
  • GOST R 25645 335-1994 Spacecrafts Gamma-activity characteristics induced in structural materials《宇宙飞船 结构材料中产生的伽马射线的放射性特点》.pdf GOST R 25645 335-1994 Spacecrafts Gamma-activity characteristics induced in structural materials《宇宙飞船 结构材料中产生的伽马射线的放射性特点》.pdf
  • GOST R 25645 336-1994 Spacecrafts Evaluation technique of the superficial glow characteristics at the eclipse parts of the orbit《宇宙飞船 轨道日食部分表面发光特点的评估技术》.pdf GOST R 25645 336-1994 Spacecrafts Evaluation technique of the superficial glow characteristics at the eclipse parts of the orbit《宇宙飞船 轨道日食部分表面发光特点的评估技术》.pdf
  • GOST R 25645 337-1994 The radiosystems of cosmic apparatus The radiophysical model of the solar plasma《宇航装置的无线电系统 太阳等离子体的无线电物理模型》.pdf GOST R 25645 337-1994 The radiosystems of cosmic apparatus The radiophysical model of the solar plasma《宇航装置的无线电系统 太阳等离子体的无线电物理模型》.pdf
  • GOST R 25645 338-1996 Polymeric materials for space technique Requirements for ultraviolet radiation stability tests《空间技术聚合材料 紫外辐射稳定性测试要求》.pdf GOST R 25645 338-1996 Polymeric materials for space technique Requirements for ultraviolet radiation stability tests《空间技术聚合材料 紫外辐射稳定性测试要求》.pdf
  • GOST R 27 001-2009 Dependability in technics Dependability management system Basic principles《工艺可靠性 可靠性管理体系 基本原理》.pdf GOST R 27 001-2009 Dependability in technics Dependability management system Basic principles《工艺可靠性 可靠性管理体系 基本原理》.pdf
  • 相关搜索

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

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