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

~ by nuryanisofia on April 17, 2012.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: