求结果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 6a(i)=i+1nextfor i=0 to 6count=count+a(i)+1nextresponse.Write count
来源:学生作业帮助网 编辑:六六作业网 时间:2025/02/07 18:18:45
求结果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 6a(i)=i+1nextfor i=0 to 6count=count+a(i)+1nextresponse.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
求结果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 6a(i)=i+1nextfor i=0 to 6count=count+a(i)+1nextresponse.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.