--> . 9 . .
!
!

 


>> 9 .

2.4.

,

.

:

    function <_> (< >):
              <_>;
    begin
      <>;
      <_> := <>
    end;

. , . . .

, , , . <_>:=<>.

, ( if, while, until) write .

2. , :

, :

    ) , b, ;
    ) b, , d;
    ) ;
    ) .

3. . , . ( ) , . ?

. /(n) n. , ƒ(1) = 1, ƒ(2) = 1, ƒ(3) = 2. , , : ƒ(4) = 3. , , , : ƒ(5) = ƒ(4) + ƒ(3) = 3 + 2 = 5. : ƒ(n) = ƒ(n - 1) + ƒ(n - 2), n ≥ 3.

1, 1, 2, 3, 5, 8,... , , XIII .

.

    function f (n: integer): integer;
    begin
      if (n=l) or (n=2) then f:=1
      else f:=f(n-l)+f(n-2)
    end;

.

, 10 .

. : .

, .

, , , .

 

 

@Mail.ru



!-- Step 2 - Decide on the place where you want to place the video -->
. , . , -->