!
!

 


>> 11 .

8. .

 

,

. , , , - . .

.

: , .

, .

3. .

[1..n]; , .

.

    1. i = 1.

    2. a[i] = , .

    3. i 1.

    4. i ≤ n, 2. .

, Pascal, :

. ? ?

Pascal.

, , for? .

, . . n , . . (n).

4. .

[1..n]; () .

() .

    1. (max := [1]).

    2. 2 (/ := 2).

    3. (i <= n), 4, ( max).

    4. , (a[i] > max), max a[i].

    5. ( i ).

    6. 3.

, Pascal, :

Pascal.

, , for? .

, .

() ?

.

 

 

@Mail.ru
<">