1x=val(inputbox("输入:"))if x=10 and x20 then y=3*x+2?y2if x 20 Then y = 3 * x + 2Debug.Print y2. x = Val(InputBox("Input X: "))If x20 Then y = 3 * x + 2End IfDebug.Print y3. x = Val(InputBox("Input X: "))select case xcase x < 10
y = Abs(x)case <= 20
y = Sqr(3 * x - 1)case else
y = 3 * x + 2end selectDebug.Print y