Ответ:
program z;
var m: array [1..2, 1..3] of integer;
i,j,k: integer;
begin
for i := 1 to 2 do
for j := 1 to 3 do
m[i,j] := random(10);
write(m[i,j], ' ')
end;
writeln()
k := 0;
if m[i,j] = 2 then k := 1;
if k<>0 then write('YES') else write('NO')
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
program z;
var m: array [1..2, 1..3] of integer;
i,j,k: integer;
begin
for i := 1 to 2 do
begin
for j := 1 to 3 do
begin
m[i,j] := random(10);
write(m[i,j], ' ')
end;
writeln()
end;
k := 0;
for i := 1 to 2 do
for j := 1 to 3 do
if m[i,j] = 2 then k := 1;
if k<>0 then write('YES') else write('NO')
end.