执行如下程序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
执行如下程序SET TALK OFFS=0I=1INPUT "N=" TO NDO WHILE S<=NS=S+II=I+1ENDDO
执行如下程序
SET TALK OFF
S=0
I=1
INPUT "N=" TO N
DO WHILE S<=N
S=S+I
I=I+1
ENDDO
?S
SET TALK ON
如果输入值为5,则最后S的显示值是( )。
A.1
B.3
C.5
D.6
相关考题:
执行下列程序,最后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
执行如下程序,最后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
程序段char*s=”aBcD”;n=0;while(*s!=’/0’){if(*s=’a’*s=’z’)n++;s++;}执行后n=()。