Question: In C++, Write a program that takes an input of integers into a 2-dimensional array of size 3x3: int arr[3][3], and output to the user
In C++, Write a program that takes an input of integers into a 2-dimensional array of size 3x3:
int arr[3][3], and output to the user if it is an: upper triangular matrix, or a lower triangular matrix. If it is neither of those, output to the user that it is a normal matrix.
Put appropriate UI messages to the user.
Hint:
A square matrix is upper triangular if all its entries below the main diagonal are zero.
A square matrix is upper triangular if all its entries above the main diagonal are zero.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
