VB程序题?
发布网友
发布时间:2023-10-10 04:17
我来回答
共1个回答
热心网友
时间:2024-11-24 19:46
Private Sub Command1_Click()
Dim x As Integer, y As Integer
Dim z As Integer, t As Integer
x = 1: y = 3: z = 2
Print x, y, z
If x > y Then t = x: x = z: z = t
If x > z Then
t = x: x = z: z = t
If y > z Then t = y: y = z: z = t
ElseIf y > z Then
t = y: y = z: z = t
End If
Print x, y, z
Print
End Sub