[单项选择题] 有下面的程序段,其功能是按下图左图所示的规律输出数据: Dim a(3,5)As Integer For j=1 To 3 For j=1 To 5a(i,j)=i+jPrin
17 查阅
[单项选择题] 有下面的程序段,其功能是按下图左图所示的规律输出数据:
Dim a(3,5)As Integer
For j=1 To 3
For j=1 To 5
a(i,j)=i+j
Print a(i,j);
Next
Next
若要按下图右图所示的规律继续输出数据,则接在上述程序段后面的程序段应该是( )
A.For i=1 To 5 For j=1 To 3
Print a(j,i);
Next
Next
B.B.For i=1 To 3
Forj=1 To 5
Print a(j,i);
Next
Print Next
C.For j=1 To 5
For i=1 To 3
Print a(j,i);
Next
Next
D.For i=1 To 5
For jW=1 To 3
Print a(i,j);
Next
Next
参考答案: