题目内容

设有数组声明语句:Dim A(2 To 4,5)以上语句所定义的数组A中共有________个元素。

查看答案
更多问题

下列程序段的执行结果为 ________。Dim M(3)For i=1 To 3M(i)=0Next iK=3For i=1 To kFor j=1 TO kM(j)=M(i)+1Print M(k);Next jNext i

下列程序段的执行结果为____________Dim A(5, 5) As IntegerFor i = 1 To 3For j = 1 To 5A(i, j) = i * jNext jNext iPrint A(2, 3) + A(3, 4) + A(4, 5)

若执行以下程序段时依次输入3,4,5,则执行结果为________。Dim a(4) As Integer, b(4) As IntegerFor k = 0 To 2a(k + 1) =Val(InputBox("请输入数据:"))b(3 - k) = a(k+ 1)Next kPrint b(k)

下列程序段的执行结果为________。Dim M(10), N(10)i= 4For j = 1 To 7M(j) = jN(i) = 2 * i + jNext jPrint N(i); M(i)

答案查题题库