请详细分析一下该ASP

来源:百度知道 编辑:UC知道 时间:2024/05/13 02:26:32
dim a(3,4)
for i=0 to 3
for j=0 to 4
a(i,j)=i*j
next
next
for j=0 to 4
for i=0 to 3
response.write a(i,j) & "<br>"
next
next

<%dim a(3,4) '一个数组变量
for i=0 to 3
for j=0 to 4
a(i,j)=i*j
next
next '将i*j的值赋给数组,如:a(0,1)=0,a(0,2)=0,……,a(3,3)=9,a(3,4)=12
for j=0 to 4
for i=0 to 3
response.write "a("&i&","&j&")="&a(i,j) & "<br>" '将数组里面的值都输出来
next
next
%>

自己测试下就知道了