Dim i As IntegerPrivate Sub Command1_Click()i = Val(Label2)i = InputBox("请输入一个整数:", "VB")If i Mod 10 = 7 ThenMsgBox ("是")ElseMsgBox ("否")End If