结果是0.因为你没有任何语句给数组a中的任何元素赋值,那么a中的所有元素都是初始值0.
Dim a(4) s=0 For i=1 to 4 s=s+a(i) Next i
1个回答
相关问题
-
For i = 2.6 To 4.9 Step 0.6 s = s + 1 Next i
-
for next 循环s=0for i=1 to 10 step 2s=s+1i=I*2next i当循环变量后,i,s
-
s=0 For i=1 to 10 step 2 s=s+i Next Print s
-
dim m(5,5),s(5) for i=1 to 5 s(i)=0 for j=1 to 5 m(i,j)=i+j
-
vb题 s=0:n=5 for i=1 to n s=s+i next i print s;i 结果怎么是15
-
s=0:t=o:u=0for i=1 to 3for j=1 to i for k=j to 3s=s+1next kt
-
有如下Visual Basic程序段:s = 0 For i = 1 To 5 s = s + i Next i 该程序
-
已知程序段:s=0 For i =1 to 10 step 2 s = s+1 i = i * 2 Next i 当循环
-
for i=0 to 10 stup 3 s=s+1 next i print s 的结果是什么,..
-
for(i=0;s[i-1]!='\0';i++) str[i]=s[i];