program prova;
type matriu = array [1..10,1..10] of integer;
var c:matriu;
var i,j,valor:integer;
procedure vegem;
begin
for i:=1 to 4 do
for j:=1 to 4 do
begin
writeln(i,',',j,':' ,c[i,j]);
end;
end;
begin
for i:=1 to 4 do
for j:=1 to 4 do
begin
if (i<=2) and (j<=2) then
begin
writeln(i,',',j);
readln(valor);
c[i,j]:=valor;
end
else c[i,j]:=0;
end;
vegem;
end.
No hay comentarios:
Publicar un comentario