for i=0 to 10 stup 3 s=s+1 next i print s 的结果是什么,..
1个回答
s=4
i=9的时候,没有超过10,所以继续往下执行,执行到next的时候,i=12,就会跳出循环
相关问题
s=0 For i=1 to 10 step 2 s=s+i Next Print s
vb题 s=0:n=5 for i=1 to n s=s+i next i print s;i 结果怎么是15
for next 循环s=0for i=1 to 10 step 2s=s+1i=I*2next i当循环变量后,i,s
s=0:t=o:u=0for i=1 to 3for j=1 to i for k=j to 3s=s+1next kt
for i=1 to 10 i=i+i j=j+1 next print i,j请问结果是什么?
Dim a(4) s=0 For i=1 to 4 s=s+a(i) Next i
已知程序段:s=0 For i =1 to 10 step 2 s = s+1 i = i * 2 Next i 当循环
i=1,S=0,WHILE i≤50,S=S+i,i=i+1,WEND PRINT S END.程序执行后输出的结果S=
For i = 2.6 To 4.9 Step 0.6 s = s + 1 Next i
s=0 for i = 1 to 10 if mod(i,3)0 loop else s=s+i endif endf