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
熱點內容