下列程序段的执行结果是()。Dim A(3,3)For M=1 To 3For N=1 To 3If N=M Or N=3-M+1 ThenA(M,N)=1E
19 查阅
下列程序段的执行结果是( )。
Dim A(3,3)
For M=1 To 3
For N=1 To 3
If N=M Or N=3-M+1 Then
A(M,N)=1
Else
A(N,N)=0
End If
Next N
Next M
For M=1 To 3
For N=1 To 3
Print A(M,N)
Next N
Next M
A.1 0 0 0 1 0 0 0 1
B.1 1 1 1 1 1 1 1 1
C.0 0 0 0 0 0 0 0 0
D.1 0 1 0 1 0 1 0 1
参考答案: