Uses crt;var a,m:array[1..99] of integer; i,j,n,b:integer;beginclrscr;randomize;writeln('vvedite N');readln(n);for i:=1 to n do begina[i]:=random(50);write(a[i]:3);end;
for i:=1 to n-1 dofor j:=i+1 to n doif (a[j]>a[i]) then beginb:=a[i];a[i]:=a[j];a[j]:=b;end;writeln;writeln('====================');for i:=1 to n dowrite(a[i]:3);readln;end.