Square matrix
Square matrix
The square matrix is 2D-Array or matrix in which both number of rows and columns are equal.
Example 1:-
int list[5][5];
X = main diagonal
- = upper triangular
+ = lower triangular
Example 2 :-
int list[5][5];
main diagonal = 2,5,5,8,7
upper triangular = 3,5,8,4,7,9,8,2,3,2
lower triangular = 2,8,3,3,5,3,7,1,2,5
Comments
Post a Comment