在Visual Basic中,有如下程序:
Private Sub Command1_Click( )
Dim a As Integer,b As Integer,c As Integer
Dim d As Integer,z As Integer
a=Val(Text1.Text):b=Val(Text2.Text):c=Val(Text3.Text)
d=min(a,b)
z=min(d,c)
Text4.Text=Str(d)
Text5.Text=Str(z)
End Sub
Function min(x As Integer,y As Integer) As Integer
If x<y Then min=x Else min=y
End Function
運(yùn)行該程序,在文本框Text1、文本框Text2、文本框Text3中分別輸入2、-5、6后,單擊命令按鈕Command1,文本框Text5中顯示的是( ?。?/h1>
【考點(diǎn)】函數(shù).
【答案】A
【解答】
【點(diǎn)評】
聲明:本試題解析著作權(quán)屬菁優(yōu)網(wǎng)所有,未經(jīng)書面同意,不得復(fù)制發(fā)布。
發(fā)布:2024/6/27 10:35:59組卷:14引用:2難度:0.5
相關(guān)試卷