[填空题] 下面程序用来计算:
![[填空题] 下面程序用来计算: Private Sub Command1_Click( ) A = Val(Text1. Text) B = Val (Text2. Text) Sel [填空题] 下面程序用来计算: Private Sub Command1_Click( ) A = Val(Text1. Text) B = Val (Text2. Text) Sel](/uploadfile/member/20180926/1537964179.jpg)
Private Sub Command1_Click( )
A = Val(Text1. Text)
B = Val (Text2. Text)
Select Case A
Case 【11】
N=A+B
Case Is = 5
N = B/A
Case Is<5
N=0
End Select
Text3. Text = N
End Sub
参考答案:
Is,5 5(或Is=5) Is<5问题解析:
在情况条件语句中,根据条件的取值,分成不同的情况来编写程序。题中式子有3种情况,程序代码中已写出后两种。据此我们可以将程序补充完整。

![[填空题] 下面程序用来计算: Private Sub Command1_Click( ) A = Val(Text1. Text) B = Val (Text2. Text) Sel [填空题] 下面程序用来计算: Private Sub Command1_Click( ) A = Val(Text1. Text) B = Val (Text2. Text) Sel](http://www.mshxw.com/aiimages/31/257871.png)
