program foo;
const
n = 20;
var
a: array[1..n] of integer;
i: integer;
begin
randomize;
for i := 1 to n do
a[i] := random(6);
Write(a[i], ' ')
end;
Writeln;
if a[i] = 0 then
a[i] := 9;
end.
program foo;
const
n = 20;
var
a: array[1..n] of integer;
i: integer;
begin
randomize;
for i := 1 to n do
begin
a[i] := random(6);
Write(a[i], ' ')
end;
Writeln;
for i := 1 to n do
begin
if a[i] = 0 then
a[i] := 9;
Write(a[i], ' ')
end;
end.