const n = 10;
var
a, b: array[1..n] of integer;
i: integer;
begin
write('Массив a: ');
for i := 1 to n do begin
a[i] := random(5);
write(a[i], ' ');
end;
writeln;
write('Массив b: ');
for i := 1 to n do begin
b[i] := random(5);
write(b[i], ' ');
end;
writeln;
for i := 1 to n do if(a[i] = b[i]) then writeln('a[', i, '] = b[', i, ']');
end.