var a:array[1..10] of integer;i,tmp:integer;begin cls; for i:=1 to 10 do a[i]:=i; for i:=1 to 10 do begin if i mod 2 = 1 then begin tmp:=a[i]; a[i]:=a[i+1]; a[i+1]:=tmp; end; end;for i:=1 to 10 dowrite(a[i], ' ');end.
var a:array[1..10] of integer;
i,tmp:integer;
begin cls;
for i:=1 to 10 do a[i]:=i;
for i:=1 to 10 do
begin
if i mod 2 = 1 then
begin
tmp:=a[i];
a[i]:=a[i+1];
a[i+1]:=tmp;
end;
end;
for i:=1 to 10 do
write(a[i], ' ');
end.