执行如下程序,最后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=5 X=11 DO WHILE S<=x S=S +i I = I +l ENDDO ?s SET TALK ON
A.5
B.11
C.18
D.26
相关考题:
执行下列程序,最后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=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
执行以下程序段后,i的值为() int i=1,s=3; do { s+=i++; if (s%7==0) continue; else ++i; } while (s<15);