Private Sub Command1_Click()
D.im a%(1 To 4),b%(3 To 6),i%,s1#,s2#
F.or i=1 To 4
a(i)=i
Next i
F.or i=3 To 6
b(i)=i
Next i
s1=Factorial(A)
s2=Factorial(B)Print"s1=";s1;"s2=";s2
E.nd Sub
F.unction Factorial(a() As Integer)
D.im t#,i%
t=1
F.or i=LBound(A)To UBound(A)
t=t*a(i)
Next i
F.actorial=t
E.nd Function
A.s1=360 s2=24
B.s1=24 s2=360
C.s1=24 s2=24
D.s1=360 s2=360
[单选题]有下列程序,程序运行后单击命令按钮,则输出的结果为( )。Private Sub Command1_Click()Dim a%(1 To 4),b%(3 To 6),i%,s1#,s2# For i=1 To 4 a(i)=i Next i For i=3 To 6 b(i)=i Next i s1=Factorial(A) s2=Factorial(B)Print "s1=";s1;"s2=";s2End SubFunction Factorial(a()As Integer)Dim
[主观题]下面运行程序后,单击命令按钮,输出的结果是______。Private Sub Commandl_clck()D.im a%(1 To 4),b%(3 To 6),i%,s1,s2F.ori=1 To 4a(i)=iNextiF.or i=3 To 6b(i)=iNextis1=YAS(a)S2=YAS(b)Printt"s1=";S1"S2=";s2E.nd Sub
[单选题]下面程序运行后,单击命令按钮,输出的结果是Private Sub Command1_Click()D.im a%(1 To 4) , b%(2 To 6) , i%, str1#, str2#F.or i=1 To 4a(i)=iNextF.or i=2 To 6b(i)=iNextstr1=YAG(a)str2=YAG(b)Print "str1="; str1; "str2="; str2E.nd SubF.unction YAG(a() As Integer)D.im t#, i%
[单选题]下面程序运行后,单击命令按钮,输出的结果是 Private Sub Command1_Click( ) Dim a%(1 To 4) , b%(2 To 6) , i%, str1#, str2# For i = 1 To 4 a(i) =i Next For i = 2 To 6 b(i) =i Next str 1 = YAG (A)str 2 = YAG (B)Print "str1 ="; str1; "str2 ="; str2 End Sub Function YAG(a()
[单选题](14)有下列程序,程序运行后单击命令按钮,则输出的结果是 Private Sub Command1_Click() Dim a%(1 To 4),b%(3 To 6),i%,s1#,s2# For i=1 To 4 a(i)=i Next i For i=3 To 6 b(i)=i Next i s1=Factorial(a) S2=Factorial(b) Print"s1=";s1;"s2";s2; End Sub Function Factorial(a()As Integer)
[试题]下面运行程序后,单击命令按钮,输出的结果是 [ ] 。Private Sub Command1_Click()D.im a%(1 To 5),i%, s#F.or i=1 To 5a(i)=iNexts=Fun(a)Print "s="; s;E.nd SubF.unction Fun(a() As Integer)D.im t#, i%t=1F.or i=LBound(a) To UBound(a)t=t a(i)NextF.un=tE.nd Function
[单选题]单击命令按钮执行下列程序,其输出结果是。 Private Sub Commana1_Click() Dim a As Integer,b As Integer,c As Integer a = 3 b = 4 c = 5 Print SecProc(c,b,a) End Sub Function FirProc(x As Integer,y As Integer,z As Integer) FirProc = 2 * x + y + 3 * z End Function Function Sec
[单选题]单击命令按钮执行下列程序,其输出结果是( )。 Private Sub Command1_Click() Dim a As Integer, b As Integer, c As Integer a=3 b=4 c=5 Print SecProc(c, b,a)End Sub Function FirProc(x As Integer, y As Integer, z As Integer) FirProc=2*x+y+3*z End Function Function SecProc(x As
[单选题]单击命令按钮执行下列程序,其输出结果是( )。Private Sub Command1_Click()D.im a As Integer,b As Integer,c As Integera=3b=4c=5Prim SecProc(c,b,A)E.nd SubF.unction FirProc(x As Integer,y As Integer,z As Integer)F.irProc=2*x+y+3*zE.nd FunctionF.unction SecProc(x As Integer,y
[单选题]单击命令按钮执行下列程序,其输出结果是( )。 Private Sub Command1_Click() Dim a As Integer, b As Integer, c As Integer a=3 b=4 c=5 Print SecProc(c,b,A)End Sub Function FirProc(x As Integer, y As Integer, z As Integer) FirProc=2*x+y+3*Z End Function Function SecProc(x As