题目内容

运行以下程序,单击命令按钮后在窗体上输出内容_________。Private Sub Command1_Click()Dim a() As IntegerDim i As Integer, j As IntegerReDim a(3, 4)For i = 1 To 3For j = 1 To 4a(i, j) = i* 10 + jNext jNext iReDim a(4, 5)Print a(2, 3)End Sub

查看答案
更多问题

运行以下程序,单击命令按钮后,如果用户从键盘上输入1、2、3、4、5、6,则窗体上输出内容为_________。Private Sub Command1_Click()Dim a() As IntegerDim i As Integer, j As IntegerReDim a(6)For i = 5 To 10a(10- i + 1) = InputBox("input number")Next iReDim Preserve a(10)a(10) = a(3) + a(5)Print a(10)End Sub

下列程序段的执行结果为 _______。Dim a(3, 5) As IntegerDim i As Integer, j As IntegerFor i = 1 To 3For j = 1 To 5a(i, j) = a(i - 1, j - 1) + (i - 1) * 5 + jNext jNext iPrint a(3, 4)

有下面程序代码:Private Sub Command1_Click()a=Array(2,3,4,5,6,7,8,9,10,11)n=UBound(A)For k=0 To UBound(A)/2Print a(k)*a(n);n=n-1Next kEnd Sub程序运行后,单击命令按钮Command1,输出结果是___________。

有下面程序代码:Option Base 1Private Sub Command1_Click()Dim a(10) As Integer,x,bx=InputBox("请输入一个多位整数")For k=1 To Len(x)b=Mid(x,k,1)a(Val(B)+1)=a(Val(B)+1)+1Next kFor k=1 To 10Print a(k);Next kEnd Sub程序运行时,单击命令按钮Command1,输入2345670456,则输出是___________。

答案查题题库