ASP高手请进来看一下!

来源:百度知道 编辑:UC知道 时间:2024/07/15 13:11:56
<%@ language=vbscript codepage=936%>
<html>
<head>
<title>ASP页面</title>
</head>
<body>
<%
for i=1 to 100
if(i\10=0)then
response.write(i)
else
response.write(i)
response.write("<br>")
end if
next
%>
</body>
</html>
我想输出1到100的方阵,帮我改一下!谢谢!

<%@ language=vbscript codepage=936%>
<html>
<head>
<title>ASP页面</title>
</head>
<body>
<%
dim a,i
a=0
for i=1 to 100
a=a+1
if a=10 then
response.write(i)
response.write("<br>")
a=0
else
response.write(i)
end if
next
%>
</body>
</html>