Question: Write a C++ function that takes a two dimensional dynamic array (matrix) and its sizes and returns true if the matrix is a lower matrix
Write a C++ function that takes a two dimensional dynamic array (matrix) and its sizes and returns true if the matrix is a lower matrix and returns false otherwise. Remark: A matrix M is lower matrix if it is a square matrix (row size = column size) and every element M[i][j] = 0 for all i < j. That is all the elements of the matrix above the main diagonal are zero. Other elements don't matter.
Can you help me to solve this problem?
(Just using function and then testing in the main program. Please, do not use defined functions in the C++ library.)
Thank you so much.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
