Problem B: 矩阵对角线求和 Description 输入一个n×n的整数矩阵,分别计算两个对角线的和。 Input 输入矩阵的阶数n(n≤10),另起一行后输入一个n×n的整数矩阵,每列数据用空格隔开,每行数据用回车分隔。 Output 输出主对角线和副对角线的和。 Sample Input 3 1 2 3 3 2 1 9 7 8 Sample Output 11 14 #include<stdio.h> int main() { int i,n,m