题目内容:
在窗体上画1个名称为Command1的命令按钮和2个名称分别为Text1、Text2的文本框,如图所示,然后编写如下程序: FunctionFun(xAsInteger,ByValyAsInteger)AsInteger
x=x+y
Ifx<0Then
Fun=x
Else
Fun=y
EndIf
EndFunction
PrivateSubCommand1_Click()
DimaAsInteger,bAsInteger
a=-10:b=5
Text1.Text=Fun(a,b)
Text2.Text=Fun(a,b)
EndSub
程序运行后,单击命令按钮,Text1和Text2文本框显示的内容分别是______和______。
参考答案:
答案解析: