asp.net 九九乘法表

来源:百度知道 编辑:UC知道 时间:2024/05/24 15:47:04
用vb的代码打出九九乘法表, 必须是直角三角形的 ,那位高人帮忙写一下。在网上看的都在程序里显示不出来,详细一点的程序。谢谢了!!!
用循环,,,还需要设置属性!!!

我这儿有个VBSCRIPT的,你根据它改改就行了,您别告我不会改啊!

<%
for i=1 to 9
m=1
do while (m<=i)
response.write(i&"*"&m&"="&(i*m)&" ")
m=m+1
loop
response.write("<br>")
next
%>

<script language="VB" runat="server">
Sub page_load(ByVal obj As Object, ByVal e As EventArgs)
Dim i, j As Integer
Dim result As String
result = ""
For i = 1 To 9
For j = 1 To i
result += i & "x" & j & "=" & i * j & " "

Next
result += "</br>"
Next
Message.Text = result
End Sub
</script>
<html>
<head >
<title>ASP.NET乘法口诀</title>
</head>
<