A和B比大小

Private Sub Command1_Click()
Cls
Me.Font.Size = 50
Dim a As Integer
Dim b As Integer
Dim swap As Integer
a = Int(Rnd * 1000)
b = Int(Rnd * 1000)
If a < b Then
swap = a
a = b
b = swap
End If

你可能感兴趣的:(A和B比大小)