In reading data into an array we must systematically access
each of the elements of the array. And we must specify them in
the order in which the data items themselves are organised. This
will be in columns and, as well, usually in rows. Therefore in
english:
for each row i do
input all the values in row i
for each row i do /* read the array A */
for each column j do
input a[i,j]
for i1 to n do
for j1 to n do
input a[i,j]
endfor
endfor
for row1 to n do
for column1 to n do
input a[row,column]
endfor
endfor