VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3195
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3195
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Click()
  Dim N1, N2 As Integer                 '声明变量N1和 N2为整型变量
  Cls
  FontSize = 14                          '设置"数学九九乘法表"标题文字的大小
  ForeColor = RGB(255, 0, 0)            '设置"数学九九乘法表"标题文字的颜色
  Print Tab(30); "数学九九乘法表": Print
  FontSize = 10                          '设置"数学九九乘法表"文字的大小
  ForeColor = RGB(0, 0, 255)            '设置"数学九九乘法表"文字的颜色
  For N1 = 1 To 9
    For N2 = 1 To N1
      Print Tab(N2 * 12 - 12); Str$(N1) + "×" + Str$(N2) + "＝" + Str$(N1 * N2);
    Next N2
    Print                        '每显示完一行后换行
  Next N1
End Sub
