首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下述程序段的执行结果是( )。 #include <stdio.h> Void main() { int x; for(x=1;x<=100;x++) if(++x%3==0) if(++x%4==0) i
下述程序段的执行结果是( )。 #include <stdio.h> Void main() { int x; for(x=1;x<=100;x++) if(++x%3==0) if(++x%4==0) i
admin
2010-05-22
19
问题
下述程序段的执行结果是( )。 #include <stdio.h> Void main() { int x; for(x=1;x<=100;x++) if(++x%3==0) if(++x%4==0) if(++x%7==0) printf("%d",x); }
选项
A、75
B、76
C、77
D、84
答案
8
解析
程序段的功能是找出100以内能同时被3、4、7整除的数,只有选项D符合题意。
转载请注明原文地址:https://kaotiyun.com/show/NVWp777K
本试题收录于:
二级C语言题库NCRE全国计算机二级分类
0
二级C语言
NCRE全国计算机二级
相关试题推荐
设有下面的程序段:X=InputBox(“请输入一个整数”)ReDima(x)Fork=xTo0Step一1a(k)=kNextk一般,在这段程序之前应先进行数组a的定义。下面定义语句中正确的是
下列选项中不属于结构化程序设计原则的是
在窗体模块的声明部分声明变量时,不能使用的关键字是()。
下列关于水平滚动条的叙述中,错误的是()。
若要消除列表框控件中的所有列表项,应该使用的方法是()。
下列算法中均以比较作为基本运算,则平均情况与最坏情况下的时间复杂度相同的是()。
设循环队列的存储空间为Q(1:m),初始状态为空。现经过一系列正常的入队与退队操作后,front=m,rear=m-1,此后从该循环队列中删除一个元素,则队列中的元素个数为()。
下面属于字符类的实例是
下列写法正确的是()。
随机试题
纳税人将购买的货物无偿赠送他人,不属于销售行为,可不计入销售额征税。()
本年度牙防所对某工厂职工进行了口腔健康调查,调查结果显示,牙周疾病患病状况不容乐观,厂医院口腔科计划开展以下口腔保健措施对于有轻度牙龈出血的职工,除了常规口腔健康教育外,要求建立良好口腔卫生习惯,提倡
下列与室外综合温度无关的因素是()。
某市政设施工程全部由政府投资兴建。该项目为该省建设规划的重点项目之一,且已列入地方年度固定投资计划,概算已经主管部门批准,征地工作尚未全部完成,施工图纸及有关技术资料齐全。现决定对该项目进行施工招标。招标人在国家级报刊发布招标公告。因估计除本市施工企业参加
下列“赣菜”名菜中,源于南昌地区的有()。
已知直线l:x-y+6=0,圆C:(x-1)2+(y-1)2=2,则圆C上各点到直线的距离的最小值是______.
试析陶行知“生活教育”理论与陈鹤琴“活教育”理论的共同特点。
张先生:应该向吸烟者征税,用以缓解医疗保健事业的投入不足。因为正是吸烟导致了许多严重的疾病。要吸烟者承担一部分费用,来对付因他们的不良习惯而造成的健康问题,是完全合理的。李女士:照您这么说,如果您经常吃奶油蛋糕或者肥猪肉,也应该纳税。因为如同吸烟一样,经
WhichofthefollowingsentencesisINCORRECT?
A、ThemanwantstomeetTominHawaii.B、TomisgoingtoHawaiiC、ThemanisleavingforHawaii.D、ThewomanisleavingforHawa
最新回复
(
0
)