program random_array;
varK: array[1..8] of integer;i: integer;
beginrandomize;
for i := 1 to 8 dobeginK[i] := random(21);writeln('K[', i, '] = ', K[i]);end;
end.
program random_array;
var
K: array[1..8] of integer;
i: integer;
begin
randomize;
for i := 1 to 8 do
begin
K[i] := random(21);
writeln('K[', i, '] = ', K[i]);
end;
end.