spc编程
发布时间: 2023-09-06 06:14:50
① 我们vb程序老师让我们编程九九乘法表,要求在窗体上输出表。求程序啊
'点击窗体出现九九乘法表,如果显示不全,适当调大窗体
Private Sub Form_Click()
Dim a As Integer
Dim b As Integer
Dim c As String
For a = 1 To 9
c = ""
For b = 1 To 9
c = c & a & "×" & b & "=" & a * b & vbTab
Next b
Print c
Next a
End Sub
热点内容