编写程序,提示用户输入一个方阵的长度,用户在矩阵中填入0和1,打印这个矩阵,然后找出整行、整列或者对角线都是0或1的行、列和对角线。
输出
No same numbers on a row No same numbers on a column No same numbers on the major diagonal No same numbers on the sub-diagonal
3 1 0 1 0 1 1 1 1 1
All 1's on row 2 All 1's on column 2 All 1's on major diagonal All 1's on sub-diagonal
先做7.10(1443)
先输出存在的,后输出不存在的
·