Private Sub Command1_Click() '矩形
For i = 1 To 9
For i1 = 1 To 9
Print i1 & " ";
Next
Print
Next
End Sub
Private Sub Command2_Click() '三角型
For i = 1 To 9
For i1 = 1 To i
Print i1 & " ";
Next
Print
Next
End Sub
Private Sub Command3_Click() '乘法表
Dim k As String * 7
For i = 1 To 9
For i1 = 1 To i
k = i1 & "×" & i & "=" & i1 * i
Print k;
Next
Print
Next
End Sub
用for 循环 不是一句两句说得清的 推荐你 金文主讲的vb计算机教程 第八章 有详细介绍