VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   4365
   ClientLeft      =   120
   ClientTop       =   450
   ClientWidth     =   6120
   LinkTopic       =   "Form1"
   ScaleHeight     =   4365
   ScaleWidth      =   6120
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command1 
      Caption         =   "计算"
      Height          =   495
      Left            =   2280
      TabIndex        =   2
      Top             =   3600
      Width           =   1695
   End
   Begin VB.TextBox Text2 
      Height          =   375
      Left            =   1320
      TabIndex        =   1
      Top             =   1560
      Width           =   1455
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   1320
      TabIndex        =   0
      Top             =   600
      Width           =   1455
   End
   Begin VB.Label Label6 
      Caption         =   "较小数："
      Height          =   375
      Left            =   3480
      TabIndex        =   8
      Top             =   1680
      Width           =   735
   End
   Begin VB.Label Label5 
      Caption         =   "较大数："
      Height          =   255
      Left            =   3480
      TabIndex        =   7
      Top             =   480
      Width           =   1335
   End
   Begin VB.Label Label4 
      Caption         =   "输入整数N"
      Height          =   255
      Left            =   360
      TabIndex        =   6
      Top             =   1680
      Width           =   975
   End
   Begin VB.Label Label3 
      Caption         =   "输入整数M"
      Height          =   375
      Left            =   360
      TabIndex        =   5
      Top             =   600
      Width           =   855
   End
   Begin VB.Label Label2 
      Caption         =   "Label2"
      Height          =   735
      Left            =   3480
      TabIndex        =   4
      Top             =   2040
      Width           =   1815
   End
   Begin VB.Label Label1 
      Caption         =   "Label1"
      Height          =   375
      Left            =   3480
      TabIndex        =   3
      Top             =   960
      Width           =   1815
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'注意：不要删除注释；完善程序时删除下划线
'要求： 1、请将命令按钮上显示的文本"command1"改为"计算"
'       2、完善程序的填空，并调试运行和保存

Private Sub Command1_Click()
 Dim M As Integer, N As Integer
 M = Val(Text1.Text): N = Val(Text2.Text)
 If M > N Then
 Label1.Caption = M: Label2.Caption = N
 Else
 Label1.Caption = N: Label2.Caption = M
 End If
End Sub

