const n=10;
var a: array[1..n] of integer;
i:integer;
begin
for i:=1 to n do
a[i]:=random(251);
write(a[i],' ');
end;
writeln;
if odd(a[i]) then a[i]:=2 else a[i]:=1;
end
end.
const n=10;
var a: array[1..n] of integer;
i:integer;
begin
for i:=1 to n do
begin
a[i]:=random(251);
write(a[i],' ');
end;
writeln;
for i:=1 to n do
begin
if odd(a[i]) then a[i]:=2 else a[i]:=1;
write(a[i],' ');
end
end.