求结果dim a(6) for i=0 to 6 a(i)=i+1 next for i=0 to 6 count=co
来源:学生作业帮 编辑:神马作文网作业帮 分类:数学作业 时间:2024/10/07 17:35:47
求结果dim a(6) for i=0 to 6 a(i)=i+1 next for i=0 to 6 count=count+a(i)+1 next response.Write count
求结果
dim a(6)
for i=0 to 6
a(i)=i+1
next
for i=0 to 6
count=count+a(i)+1
next
response.Write count
求结果
dim a(6)
for i=0 to 6
a(i)=i+1
next
for i=0 to 6
count=count+a(i)+1
next
response.Write count
i从0到6,七次循环,a0=1,a1=2,a2=3,a3=4,a4=5,a5=6,a6=7.
count相加7次,
count0=0+1+1=2
count1=2+2+1=5
count2=5+3+1=9
count3=9+4+1=14
count4=14+5+1=20
count5=20+6+1=27
count最终结果=27+7+1=35.
这个程序实现的是count=0+2+3+4+5+6+7+8.
count相加7次,
count0=0+1+1=2
count1=2+2+1=5
count2=5+3+1=9
count3=9+4+1=14
count4=14+5+1=20
count5=20+6+1=27
count最终结果=27+7+1=35.
这个程序实现的是count=0+2+3+4+5+6+7+8.
求结果dim a(6) for i=0 to 6 a(i)=i+1 next for i=0 to 6 count=co
DIM AS INTEGER A(6),I,T,J,P T=0 FOR I=1 TO 6:A(I)=7-I:NEXT F
下列程序段的执行结果为 dim a(5) for i=1 to 5 a(i)=i*i next i print a(i-
Dim a(4) s=0 For i=1 to 4 s=s+a(i) Next i
Dim x(100), a For i = 1 To 100 x(i) = i Next i For Each a In
下列程序的执行结果为().dim a(10),b(5) for i=1 to 10 a(i)=i next i for
Dim a, i% a=array(1,2,3,4,5,6,7) For i =Lbound(a) to Ubound(
Dim a(1 To 10) As Integer Dim i As Integer a(1) = 1 For i =
Dim a a=Array(1,2,3,4,5,6,7) For i=Lbound (a) To Ubound (a)
dim I% ,S% s=0 for I=5 to 1 s=s+i next I print “s=” ; s 怎么看的
怎么理解vb中 dim m(10) for i=1 to 5 m(i)=i*i next i print m(i-1)
VB程序如下:Dim a a = Array(1,2,3,4,5,6,7,8) i = 0 For k = 100 To