надо было типо так решить Program ...;var a:array [1..10] of integer;i:integer;beginwrite;for i:=1 to 10 dobegina[i]:=random(22)+1;write(a[i], ' ');end;writeln;write;for i:=1 to 10 dobeginif i mod 2 = 0 thenbegina[i]:=a[i]+1;write(a[i], ' ');a[i]:=a[i]-1;write(a[i], ' ');end;end;end.