Download docx - 08a-ciklusi-teorija

Transcript

-

. : .

. .

:

- -

. . ( ), .

:1. (FOR)2. (WHILE)3. (REPEAT)

FOR

:

FOR i:=PV TO KV DO N;

i- ( )PV- KV- N- ( , begin-end)

i PV KV. , , .

.

, :

FOR i:=PV DOWNTO KV DO N;

WHILE

, . :

While U do N;

: N U. N begin-end. While U , . .

REPEAT

, . :

Repeat N1;N2:Nn until U;

: N1;N2:Nn U. While , Repeat . , .