## program to determine whether the matrix is entered or not a square matrix

The following is a program to determine whether the matrix is entered or not a square matrix.

**square matrix** is a matrix that has the same number of rows and columns.

if column 2 is also 2 rows. if not the same means the matrix is not square

Below is the program output :

output below is not a square matrix because it has 2 columns and 3 rows

while the output below is a square matrix, because it has the same row and column is 2.

complete program can be downloaded **here**

Advertisements