!
!

 


>> 9 .

2.2.

,

() .

, , , .

, , , .

: .

. 1 .

    1 10-11 .

(, ) :

    1) ;
    2) ( );
    3) ; ;
    4) , . 3, , ( ).

= {0, 1, 9, 2, 4, 3, 6, 5}.

7 . n n-1 . .

, :

    for i:=l to n-1 do
    begin
    imax:=i;
    for j:=i+1 to n do if a[j]>a[imax] then imax:=j;
    x:=a[i];
    a[i]:=a[imax];
    a[imax]:=x
    end;

. .

.

(http://informatika.kspu.ru/flashprog/demos.php) , .

, , . , .

. :

    var <_>: array [<__> ..
    <__>] of _;

, . .

, , , : ; ; .

 

 

@Mail.ru
<">