Question: Write a code in C++. A square matrix in which all the entries below the main diagonal are zero is called upper triangular. Write a

Write a code in C++.
A square matrix in which all the entries below the main diagonal are zero is called upper triangular. Write a function IsMatrixUpperTriangular which takes a matrix and returns true if the matrix is upper triangular and false otherwise. For example, matrix A shown below is upper triangular while matrix B is not upper triangular. 2 7 0 -1 0 5 O -1 0 0 7 0 0 o 0 0 Matrix A -1 2 7 0 0 0 -1 -9 0 7 0 0 0 o 0 Matrix B
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
