更多"用程序计算一个整数的各位数字之和,在下划线处应填写的语句是( )。
"的相关试题:
[单项选择]用程序计算一个整数的各位数字之和,在下划线处应填写的语句是( )。 SET TALK OFF INPUT "X=" TO X S=0 DO WHILE X!=0 S=S+MOD(X,10) ENDDO S SET TALK ON
A. X=int(X/10)
B. X=int(X%10)
C. X=X-int(X/10)
D. x=x-int(X%10)
[单项选择]用程序计算一个整数的各位数字之和,在下划线处应填写的语句是( )。 SET TALK OFF INPUT "X=" TO X S=0 DO WHILE X!=0 S=S+MOD(X,10) ______ ENDDO S SET TALK ON
A. X=int(X/10)
B. X=int(X%10)
C. X=X-int(X/10)
D. X=X-int(X%10)
[单项选择]
下面程序计算一个整数的各位数字之和。在下划线处应填写的语句是()
SET TALK OFF
INPUT"X=Y"TO x
s=0
DO WHILEx!=0
s=s+MOD(x,10)
_________
ENDDO S
SET TALK ON
A. x=int(x/10)
B. x=int(x%10)
C. x=x-int(x/10)
D. x=x-int(x%10)
[单项选择]Before the students set off, they spent much time setting a limit ______the expenses of the trip.
A. to
B. about
C. in
D. for
[单项选择]Before the tourists set off, they spent much time setting a limit ________ the expenses of the trip.
A. for
B. in
C. to
D. about
[单项选择](), we will set off as we planned.
A. Were it good or bad
B. Be it good or bad
C. Being good or bad
D. Whether good or bad
[单项选择]有如下程序 SET TALK OFF CLEAR AA=”全国计算机等级考试” 册;”九八” CC=”——” AA ”&BB.年第&CC.次考试” 执行程序后,屏幕显示( )。
A. 国计算机等级考试九八年第一次考试
B. 全国计算机等级考试九八年第一次考试
C. 全国计算机等级考试BB年第CC次考试
D. 全国计算机等级考试耶年第CC次考试
[单项选择]"Are they going to set off tomorrow Yes, we expect ______ "
A. that they do
B. their doing it
C. them to
D. they can
[单项选择]A group of lines which are set off and form a division in a poem is called a______.
A. verse
B. stanza
C. chapter
D. line
[单项选择]I set off as soon as I got the news about my grandpa's illness. Unfortunately, he _________at the hospital before I ____.
A. has died; went there
B. had died; arrived
C. died; had been there
D. was dying; had gone