[单选题]

(26)设窗体上有一个名为Text 1的文本框和一个名为Command 1的命令按钮,并有以下

事件过程:

Private Sub Commandl Click()

x!=Val(Text 1.Text)

Select Case x

C.ase Is<-10,Is>=20

Prini"输入错误"

C.ase Is<0

Print 20-x

C.ase Is<10

Print 20

C.ase Is<=20

Print x+10

E.nd Select

B.ud Sub

程序运行时,如果在文本框中输入一5}则单击命令按钮后的输出结果是

A.)5

B.)20

C.)25

D.)输入错误

参考答案与解析: