西樵山狮王争霸赛:ASP代码!!!!!!解决!!!

来源:百度文库 编辑:查人人中国名人网 时间:2024/05/04 16:49:40
用Vbscript在网页上输出九九乘法表(下三角的形式)

<html>
<head>
<title>99乘法表</title>
</head>
<body>
<table border="1">
<caption>九九乘法表</caption>
<%
Dim i, j
For i = 1 To 9
Response.Write("<TR>")
For j = 1 To 9
Response.Write("<TD>")
Response.Write(i & "×" & j & " = " & i*j)
Response.Write("</TD>")
Next
Response.Write("</TR>")
Next
%>
</table>
</body>
</html>

代码如下:

<%
Dim a,b
for a=1 to 9
for b=1 to a
response.write a & "*" & b & "=" & a*b & " "
next
response.write "<br>"
next
%>