Program to find if the given matrix is lower triangular or not | faceprep

Program to find if the given matrix is lower triangular or not | faceprep

Program to find if the given matrix is lower triangular or not is discussed here. A square matrix is obtained as input from the user and it is checked if it is lower triangular or not.

program to find if the given matrix is lower triangular or not


A square matrix is said to be a lower triangular matrix if all the entries above the diagonal are zero.

Program to find if the given matrix is lower triangular or not lower triangular matrix

Algorithm to check if the given matrix is lower triangular or not

  • Input the order of the square matrix.
  • Input the matrix elements.
  • Repeat from i = 0 to n.
  • Repeat from j = 1+1 to n.
  • if (mat[i][j] != 0)
  • Set flag = 0 and print “Not a Lower Triangular Matrix”.
  • Else, print “Lower Triangular Matrix”.


face prep pro ad bannerClick here to learn more about FACE Prep PRO


Program to check if the given matrix is lower triangular or not

@@coding::1@@


Recommended Programs


Program to find if the given matrix is lower triangular or not

c