Step back from the program a minute and think about what you are trying to do.

If the number of columns is not equal to the number of rows, you must create a new array.

For example, suppose the...