[试题]

在窗体上画1个名称为Command1的命令按钮和2个名称分别为Text1、Text2的文本框,如图所示,然后编写如下程序:

F.unction Fun(x As Integer,ByVal y As Integer)As Integer

x=x+y

If x<0 Then

F.un=x

E.lse

F.un=y

E.nd If

E.nd Function

Private Sub Command1_Click()

D.im a As Integer,b As Integer

a=-10:b=5

Text1.Text=Fun(a,b)

Text2.Text=Fun(a,b)

E.nd Sub

程序运行后,单击命令按钮,Text1和Text2文本框显示的内容分别是______和______。

参考答案与解析: