题库 高中信息

题干

若在文本框Text1、Text2,Text3中分别输入2,5,6,下列程序段运行后,标签Labe12中显示的内容是
Private Sub Command1_Click()
Dim a As Integer,b As Integer,c As Integer
A=Val(Text1.Text):b=Val(Text2.Text):c=Val(Text3.Text)
Label2.Caption=Str(fx(a,b,c))
End Sub
Function fx(x As Integer,y As Integer,z As Integer)As Integer
If x<y Then fx=z
Ifx>y Then fx=y Else fx=x
End Function
A.2B.5C.6D.0
上一题 下一题 0.99难度 选择题 更新时间:2019-11-20 12:47:30

答案(点此获取答案解析)