执行如下程序,最后S的显示值为SET TALK OFFs=0i=5x=11DO WHILE s=xs=s+ii=i+1ENDDO?sSET TALK ONA.5B.11C.18D.26

执行如下程序,最后S的显示值为

SET TALK OFF

s=0

i=5

x=11

DO WHILE s<=x

s=s+i

i=i+1

ENDDO

?s

SET TALK ON

A.5

B.11

C.18

D.26


相关考题:

如下程序显示的结果是 S=1 i=0 do while i8 s=s+i i=i+2 enddo?s

【程序】SET TALK OFFS=0I=1DO WHILE I<4ACCEPT “请输入字符串:”TO XIF“A” $ XS=S+1ENDIFI=I+1 ENDDO? SRETURN运行时输入:“abcd”、“aBCD”,输出S的值为 ______。A.3B.2C.1D.0

执行下列程序,最后S的显示值为( )。SET TALK OFFs=0i=2x=10DO WHILE s<=xs=s+ii=i+1ENDDO?sSET TALK ONA.12B.14C.16D.18

执行如下程序,最后S的显示值为 SET TALK OFF S=0 i=5 X=11 DO WHILE S<=x S=S +i I = I +l ENDDO ?s SET TALK ONA.5B.11C.18D.26

执行如下程序,最后S的显示值为( )。 SET TALK OFF s=0 i=2 x=10 DO WHILE s一一X S=S+i i=i十l ENDDO ?S SET TALK ONA.12B.14C.16D.18

执行如下程序,则最后S的显示值为( )。 SET TALK FFS=0 i=5x=11DO WHILE s=X s=s+ii=i+lENDD07 S SET TALK ONA. 5B. 11C. 18D. 26

执行如下程序,最后s的显示值为 SET TALK OFF S=0 i=5 x=11 DO WHILE s=x s=s+i i=i+l ENDD0 7 S SET TALK ONA. 5B. 11C. 18D. 26

执行如下程序SET TALK OFFS=0I=1INPUT "N=" TO NDO WHILE S 执行如下程序SET TALK OFFS=0I=1INPUT "N=" TO NDO WHILE SS=S+II=I+1ENDDO?SSET TALK ON如果输入值为5,则最后S的显示值是( )。A.1B.3C.5D.6

执行如下程序,最后S的显示值为 SET TALK OFF S=0 i=5 X=11 DO WHILE s<=X s=s+i i=i+1 ENDDO ?s SET TALK ONA.5B.11C.18D.26