Private Sub Command1_Click()Dim x As Single, y As Singlex = Val(InputBox("数据输入", "数据列表"))Select Case xCase Is < 1 Print "y="; xCase 1 To 10 Print "y="; 3 * x - 2Case Is > 10 Print "y="; 4 * x - 12Case Else End SelectEnd Sub