OUTPUT:
1 2 3 4 5
|
enter row 0 for the matrix: 3 3 3
The program has determined the matrix will have 3 columns. The size : 3 x 3
enter row 1 for the matrix: 1 1 1
enter row 2 for the matrix: 2 2 2
|
instead of
The size : 3 x 3
I would like
The size : 3 x Undetermined Until "Enter" on an empty line
enter row 1 for the matrix: 1 1 1
enter row 2 for the matrix: 2 2 2
enter row 3 for the matrix: 3 3 3
enter row 4 for the matrix: "Enter"
so now the matrix would end as a 3x3 and all values would be stored
pretty much keep prompting for rows untill user inputs "enter" on a blank line
enter row 1 for the matrix: 1 1 1
enter row 2 for the matrix: 2 2 2
enter row 3 for the matrix: 3 3 3
enter row 4 for the matrix: 4 4 4
enter row 5 for the matrix: 1 1 1
enter row 6 for the matrix: 2 2 2
enter row 7 for the matrix: "Enter"
so this would now be 3 x 6