program to check whether matrix is upper triangular or not in c language
Answers
Answered by
1
Answer:
Algorithm to check if the given matrix is upper triangular or not
Input the order of the square matrix.
Input the matrix elements.
Repeat from i = 1 to n.
Repeat from j = 0 to i.
if (mat[i][j] != 0)
Set flag = 0 and print "Not An Upper Triangular Matrix".
Else, print "Upper Triangular Matrix".
Similar questions