.


:




:

































 

 

 

 


While.. do




1. ?

2. ?

3. ?

4. ?

5. ?

6. ?

7. ?

8. - -?

9. ?

10. - ?

11. - ?

12. ?

 

.

4, , :

X;

Y X0 dX,;

(, , );

;

;

: 1 - ; 2 .

( ) For, While, Repeat.

 

For

For :

1..n

For := _ to _

do

 

 

- , , , . _ _ +1.

:

_ < _

__- , , , , .

_; , ; ; +1; , . , , , _.

, , Begin..end;

For := _ to _ do begin 1; ................. end; ForJ:= 1 to10 do begin........... 1; ............ end;

_ < _, :

For := _ Downto_ do 1; For J:= 10 downto 1 do 1;  

 

While.. do

, :

  While do ; While do begin ; ............ end;

- . . = True, , . , = False. , .

Repeat.. until


Repeat

;

...............

;

until ;

While, Repeat . , Repeat, True. , , .

, . .

 

:

<_> = array [ <> ] of <> ,

<_> - ;

array, of - (, );

<> - , - . -, . , 2 (. . LongWord Int64).

<> - .





:


: 2016-10-27; !; : 519 |


:

:

.
==> ...

988 - | 853 -


© 2015-2024 lektsii.org - -

: 0.014 .