题目内容:
设有如下程序Private Sub Form Click()
Dim a As Integer,b As Integer
a=20:b=50
P1 a.b
p2 a.b
p3 a,b
Print“a=”;a,“b=”;b
End Sub
Sub pl(x As Integer,ByVal Y As Integer)
x=x+10
y=y+20
End Sub
Sub p2(ByVal x As Integer,Y As Integer)
x=x+10
y=y+20
End Sub
Sub p3(ByVal x As Integer,ByVal Y As Integer)
x=x+lO
y=y+20
End Sub
该程序运行后,单击窗体,则在窗体上显示的内容是:a=【1】和b=【2】。
参考答案:
答案解析: