const nx = 30; Var i,c,k,j,n:integer;a:array[1..nx] of integer;beginRead(n);randomize;writeln('Получившийся массив:');for i:=1 to n do begina[i]:=random(20)-10; write(a[i],' ');end;for i:=1 to n do beginfor j:=2 to n do beginif a[j] > a[j-1] then beginc:=a[j]; a[j]:= a[j-1];a[j-1]:=c;end;end;end;writeln;for i:=1 to n do write(a[i],' ');end.