Ответы и объяснения

2013-04-16T13:32:27+00:00

const n = 10;
var
  a: array[1..n] of integer;
  i: byte;
begin
  for i := 1 to n do begin
    a[i] := random(20);
    write(a[i], ' ');
  end;
  writeln;
  for i := 1 to n do begin
    if(a[i] mod 2 <> 0) then a[i] := a[i] * 2;
    write(a[i], ' ');
  end;
end.