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()
   n1 = InputBox("输入n")
   m1 = InputBox("输入m")
   If m1 > n1 Then               ' m>n
     m = m1: n = n1
   Else
     m = n1: n = m1
   End If
   Do
     r = m Mod n
     If r = 0 Then Exit Do
     m = n
     n = r
   Loop
   Print m1; ","; n1; "的最大公约数为"; n
   Print "最小公倍数= ", m1 * n1 / n
End Sub

