-4
I did but it didn’t work:
program teste;
uses crt;
var
iMat: array [1..3,1..3] of integer;
iLin, iCol: integer;
begin
write ('Digite os números da matriz: ');
for iLin:=1 to 3 do
begin
for iCol:=1 to 3 do
read (iMat[iLin,iCol]);
end;
clrscr;
for iLin:=1 to 3 do
begin
for iCol:=1 to 3 do
gotoxy (iCol,iLin); write (iMat[iLin,iCol]);
end;
readkey;
end.
How to solve?
For the case of the colleague, always give new line which would display only one row, and not in table/matrix form.
– Shura16