高中会考信息技术VB题s=0for k=1 to 10 step 2s=s+kNext该程序运行后变量s的值是 ----
2个回答
O+1=1
1+2=3
3+3=6
6+4=10
10+5=15
15+6=21
21+7=28
28+8=36
36+9=45
45+10=55
最后S的值为55
我觉得的是这样子啊~
相关问题
下列Visual Basic程序段运行后,变量s的值为__. a=2:b=1:s=0 For i=10 To 6 Ste
for next 循环s=0for i=1 to 10 step 2s=s+1i=I*2next i当循环变量后,i,s
s=0 For i=1to 10 step 2 s= s+1 i=i*2 变量S等于什么啊 为什么
s=0 For i=1 to 10 step 2 s=s+i Next Print s
已知程序段:s=0 For i =1 to 10 step 2 s = s+1 i = i * 2 Next i 当循环
14.有如下的Visual Basic程序段:s = 1 For i = 10 To Step -1 s = s * i
s=1 for i=1 to 5 step 2 s=s+i endfor s
有如下Visual Basic程序段:s = 0 For i = 1 To 5 s = s + i Next i 该程序
求1-2+3-4+5-6+.+99-100的值 s=0 for i=1 to 99 step 2 s=s+_______
Dim s as long ,x as integer s=0 For x=9to10 Step2 S=s+x Next