题目内容:
在窗体上画一个名为Command1的命令按钮,编写如下程序:Private Sub Command1_Click()
DimnOAs Integer
Dim a As Integer,b As Integer
a=InputBox(”Enter the first number”)
b=InputBox(”Enter the second number”1
ReDimn(aTob)
For k=LBound(n,1)To UBound(n,1)
n(k)=k
Print“n(“;k;”)=”;n(k)
Next
End Sub
程序运行后,单击命令按钮,在输入对话框中分别输入4和5,则输出结果为________。
参考答案:
答案解析: