Private Sub Book(x As Integer)
来源:学生作业帮 编辑:神马作文网作业帮 分类:综合作业 时间:2024/11/17 13:01:23
Private Sub Book(x As Integer)
x=x * 2 + 1
If x < 6 Then
Call Book(x)
End If
x=x * 2 + 1
Print x;
End Sub
Private Sub Command2_Click()
Book 2
End Sub
A) 23 47
B) 10 36
C) 22 44
D) 24 50
30) 单击命令按钮时,下列程序的执行结果为
Private Sub Command1_Click()
Dim a As Integer,b As Integer,c As Integer
a=2:b=3:c=4
Print P2(c,b,A)
End Sub
Private Function P1(x As Integer,y As Integer,z As Integer)
P1=2 * x + y + 3 * z
End Function
Private Function P2(x As Integer,y As Integer,z As Integer)
P2=P1(z,x,y) + x
End Function
A) 21
B) 19
C) 17
D) 34
Private Sub Command1_Click()
Dim k As Integer,m As Integer
Dim p As Integer
k=4:m=1
p=PC(k,m) :Print p;
p=PC(k,m) :Print p
End Sub
Private Function PC(a As Integer,b As Integer)
Static m As Integer,i As Integer
m=0:i=2
i=i + m + 1
m=i + a + b
PC=m
End Function
程序运行后,输出的结果为
A) 4 6
B) 6 6
C) 8 8
D) 10 12
x=x * 2 + 1
If x < 6 Then
Call Book(x)
End If
x=x * 2 + 1
Print x;
End Sub
Private Sub Command2_Click()
Book 2
End Sub
A) 23 47
B) 10 36
C) 22 44
D) 24 50
30) 单击命令按钮时,下列程序的执行结果为
Private Sub Command1_Click()
Dim a As Integer,b As Integer,c As Integer
a=2:b=3:c=4
Print P2(c,b,A)
End Sub
Private Function P1(x As Integer,y As Integer,z As Integer)
P1=2 * x + y + 3 * z
End Function
Private Function P2(x As Integer,y As Integer,z As Integer)
P2=P1(z,x,y) + x
End Function
A) 21
B) 19
C) 17
D) 34
Private Sub Command1_Click()
Dim k As Integer,m As Integer
Dim p As Integer
k=4:m=1
p=PC(k,m) :Print p;
p=PC(k,m) :Print p
End Sub
Private Function PC(a As Integer,b As Integer)
Static m As Integer,i As Integer
m=0:i=2
i=i + m + 1
m=i + a + b
PC=m
End Function
程序运行后,输出的结果为
A) 4 6
B) 6 6
C) 8 8
D) 10 12
A
A
C
A
C
麻烦解释这个程序Private Sub pl(x As Integer,ByVal y As Integer)x = 4
Private Sub Form_Click() Dim a As Integer,b As Integer,k As
Private Sub Command1_Click() Dim i As Integer,s As Integer,n
Private Function p1(x As Integer,y As Integer,z As Integer)
英语翻译Private Sub 主体_Print(Cancel As Integer,PrintCount As Int
Private Sub Command1_Click() Dim i,j As Integer For i = 3 To
帮忙VB试题我怎么想都算不对Private Sub Command1_Click()Dim a As Integer,b
9^n+2是不是质数vb编程如下Private Sub Command1_Click()Dim a As Integer
英语翻译Private Sub Form_Click()Dim a(1 To 10) As Integer,i%,max
b求π为啥是错的Private Sub Command1_Click()Dim s As Integer,n As Do
Private Sub Command1_Click() Dim x As Single,y As Single Pic
33.设有如下程序Private Sub Command1_Click( )Dim sum As Double,x As