var a:array[1..10] of integer;
i:integer;
begin
randomize;
for i:=1 to 10 do a[i]:=random(1,10);
for i:=1 to 10 do write(a[i],' ');
writeln;
for i:=1 to 10 do if(i mod 2 = 0) then a[i]:=a[i]*2 else a[i]:=a[i]*3;
end.
var a:array[1..10] of integer;
i:integer;
begin
randomize;
for i:=1 to 10 do a[i]:=random(1,10);
for i:=1 to 10 do write(a[i],' ');
writeln;
for i:=1 to 10 do if(i mod 2 = 0) then a[i]:=a[i]*2 else a[i]:=a[i]*3;
for i:=1 to 10 do write(a[i],' ');
end.