Private Sub Command1_Click()
Dim g As Integer
Dim p As Integer
p = 99 '预设价格的值存储到p变量中
g =
If g > p Then
= "对不起,偏高了!"
ElseIf g < p Then
Label4.Caption = "对不起,偏低了!"
Else
Label4.Caption = "恭喜你,猜对啦!"
End Sub
微信扫码预览、分享更方便