下面的C++不能实现如下输出,但如果将L1标记的cout << 0行移动if块外面,或者说移动到 L2 标记
行,则可以。( )
请输入矩阵大小n: 9100000000020000000003000000000400000000050000000006000000000700000000080000000009int n, i, j;cout << "请输入矩阵大小n: ";cin >> n; for (i = 0; i < n; i++){ for (j = 0; j < n; j++){ if (i == j){ cout << i + 1; continue; cout << 0; // L1 } // L2 } printf("\n");}