Write a program to print lower triangular matrix and upper triangular matrix of an 2D Array. Triangular Matrix
A Triangular matrix is one that is either lower triangular or upper triangular.
A square matrix is called lower triangular if all the entries above the main diagonal are zero.
A square matrix is called upper triangular if all the entries below the main diagonal are zero.