问题
下面程序代码的功能是 。 Private Sub Command1_Click() a = Val(Text1.Text) b = Val(Text2.Text) c = Val(Text3.Text) If a > b Then t = b Else t = a End If If t > c Then t = c End If Print t End Sub
下面程序代码的功能是 。
Private Sub Command1_Click()
a = Val(Text1.Text)
b = Val(Text2.Text)
c = Val(Text3.Text)
If a > b Then
t = b
Else
t = a
End If
If t > c Then
t = c
End If
Print t
End Sub
A:求三个数的最大值 B:求三个数的最小值 C:求三个数的中间值 D:不能确定
您可能感兴趣的试题
-
执行完下面的程序段后,共循环了 次。 For I = 1.7 To 5.9 Step 0.9 a = a + 1 Print a Next I
执行完下面的程序段后,共循环了 次。For I = 1.7 To 5.9 Step 0.9 a = a + 1 Print aNext I A:3 B:4 C:5 D:6...
查看答案 -
下列关于FOR循环的说法中,正确的是________________。
下列关于FOR循环的说法中,正确的是________________。 A:循环变量、初值、终值和步长都必须是数值型 B:STEP后面的值必须为正数 C:初值必须小于终值 D:初值必须大于终值...
查看答案 -
下列关于do…loop循环结构执行循环体次数的描述正确的是 。
下列关于do…loop循环结构执行循环体次数的描述正确的是 。 A:do while…loop循环和do…loop until循环至少都执行一次 B:do while…loop循环和do…loop until循环可能都不执行 C:do while…loop循环至少执行一次,d...
查看答案 -
以下程序段输出的结果为_________。 num = 0 While num <= 2 num = num + 1 Print num; Wend
以下程序段输出的结果为_________。num = 0While num...
查看答案 -
下面程序代码的功能是 。 Private Sub Command1_Click() a = Val(Text1.Text) b = Val(Text2.Text) c = Val(Text3.Text) If a > b Then t = b Else t = a End If If t > c Then t = c End If Print t End Sub
下面程序代码的功能是 。Private Sub Command1_Click()a = Val(Text1.Text)b = Val(Text2.Text)c = Val(Text3.Text)If a > b Thent = bElset = aEnd IfIf t > c The...
查看答案