问题
单项选择题
以下程序段的执行结果是 ______。Dim A(3, 3) For m = 1 To 3For n = 1 To 3 If n = m Or n = 3 - m + 1 ThenA(m, n) =m + n ElseA(m, n) = 0 End IfNext n Next m For m = 1 To 3For n = 1 To 3 Print A(m, n);Next nPrintNext m
A.1 1 11 1 1 1 1 1
B.2 0 40 4 0 4 0 6
C.0 0 0 0 0 0 0 0 0
D.1 0 1 0 1 0 1 0 1
答案
参考答案:B