Sum of opposite/minor diagonal elements of a matrix


Sum of opposite/minor diagonal elements of a matrix

In [1]:
Enter the size of the matrix: 3
Enter the elements of the matrx: 
3
2
3
4
3
4
5
4
6
The entered matrix is: 
3 2 3 
4 3 4 
5 4 6 
Sum of opposite/minor diagonal elements of the matrix is: 
11

No comments:

Post a Comment