首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
【程序说明】程序功能是求1!+2!+3!+…+10!的累加和。 【程序】 SET TALK OFF S=0 FOR i=1 TO 10 t=1 FOR j=1 TO (5) t=t*j (6) s=s+ t NEXT (7) SET TALK ON
【程序说明】程序功能是求1!+2!+3!+…+10!的累加和。 【程序】 SET TALK OFF S=0 FOR i=1 TO 10 t=1 FOR j=1 TO (5) t=t*j (6) s=s+ t NEXT (7) SET TALK ON
admin
2010-06-18
43
问题
【程序说明】程序功能是求1!+2!+3!+…+10!的累加和。
【程序】
SET TALK OFF
S=0
FOR i=1 TO 10
t=1
FOR j=1 TO (5)
t=t*j
(6)
s=s+ t
NEXT
(7)
SET TALK ON
选项
A、EXIT
B、ENDFOR
C、ENDDO
D、STEP
答案
B
解析
FOR… ENDFOR 的格式如下:
FOR 循环变量=初值TO 终值[STEP 步长]
<语句序列>
[EXIT]
[LOOP]
EXDFOR/NEXT
转载请注明原文地址:https://kaotiyun.com/show/qthZ777K
本试题收录于:
浙江省计算机二级VF题库浙江省计算机等级分类
0
浙江省计算机二级VF
浙江省计算机等级
相关试题推荐
Chronicinsomniaisamajorpublichealthproblem.Andtoomanypeopleareusing【C1】______therapies,evenwhilethereareafew
Chronicinsomniaisamajorpublichealthproblem.Andtoomanypeopleareusing【C1】______therapies,evenwhilethereareafew
WetendtothinkofthedecadesimmediatelyfollowingWorldWarIIasatimeofprosperityandgrowth,withsoldiersreturningh
Writeanessaybasedonthefollowingoutline.Youshouldwriteabout150wordsontheANSWERSHEET.1.教师用课外时间给学生补课赚钱的现象
WriteanessayaccordingtothefollowingrequirementsinChinese.Youshouldwriteabout150wordsonANSWERSHEET2.1.家长送学生参
常用的调用webservice方法有哪些?
在一个ASPX文件中是否可以使用一种以上的语言?
给定链表的头指针和一个结点指针,在O(1)时间删除该结点。链表结点的定义如下:structListNode{intm_nKey;ListNode*m_pNext;};函数的声明如下:voidDeleteNode(L
输入一个链表的头结点,从尾到头反过来输出每个结点的值。链表结点定义如下:structListNode{intm_nKey;ListNode*m_pNext;};
随机试题
对运输活动进行管理的基本要求有()。
用双头螺柱和螺母联接零件时,要求双头螺柱拧入零件后,应具有一定的紧固性。()
Theyoungmanlosthisjoblastmonth,butitwasn’tlong______hefoundanewpositioninmycompany.
[2012年,第119题]根据《行政许可法》的规定,下列可以设定行政许可的事项是()。
城乡规划作为指导城乡建设和发展的依据和重要手段,必须依靠法律的()来保证城乡规划的科学制定和顺利实施。
下列各项中,属于共益债务的有()。
资本公积、盈余公积的实质性测试程序主要有哪些?
YouaretheadministratorofaSQLServer2000computernamedSQL1.Youwanttoperformadhocdistributionqueriesagainstada
TheEconomistIntelligenceUnit(EIU)earnestlyattemptstomeasurewhichcountrywillprovidethebestopportunitiesforahealth
A、Thenarrativespiralstowardsthehiddentruth.B、Thenarrativedirectlyrevealsthetruth.C、Thenarratorisoftenathird-pe
最新回复
(
0
)