win7无法显示u盘:数组问题

来源:百度文库 编辑:神马品牌网 时间:2024/04/30 22:28:29
<%
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
%>

结果是35
问题他是怎么得到的35

a(i)=i+1即分别值是1到7

count=count+a(i)+1表示累加a(i)+1,即是2到8的累加

累加a(i)2+3+4+5+6+7+8=35