Private Sub Command1_Click()
Dim a, b As Double
a = InputBox("输入你的答案", "birthday", "请输入10以内的数字")
b = 10
If x > b Then
MsgBox "你的答案大于b"
ElseIf b > x Then
MsgBox "你的答案小于b"
ElseIf x = b Then
MsgBox "你输入的正确恭喜你了"
End If
End Sub
Dim a, b As Double
a = InputBox("输入你的答案", "birthday", "请输入10以内的数字")
b = 6
If a > b Then
MsgBox "你的答案大于b"
ElseIf b > a Then
MsgBox "你的答案小于b"
ElseIf x = b Then
MsgBox "你输入的正确恭喜你了"
End If
Dim a, b As Double
a = InputBox("输入你的答案", "birthday", "请输入10以内的数字")
b = 6
If a > b Then
MsgBox "你的答案大于b"
ElseIf b > a Then
MsgBox "你的答案小于b"
Else
MsgBox "你输入的正确恭喜你了"
End If