home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
ozogan
/
CYKLUS.IPS
< prev
next >
Wrap
Text File
|
1997-08-12
|
599b
|
31 lines
VAR
x : real
ENDVAR
PROCEDURE main
ConsoleClear;
FOR x := 1 to 3 step 0.5
WRITELN(x:10:1);
ENDFOR
WRITELN('*** konec cyklu FOR nahoru ***');
FOR x := 5 downto 1
WRITELN(x:10);
ENDFOR
WRITELN('*** konec cyklu FOR dol∙ ***');
x := 1;
WHILE x < 5 {dokud je v²raz pravdiv²}
WRITELN(x*3:10);
x := x+1;
ENDWHILE
WRITELN('*** konec cyklu WHILE ***');
x := 1;
REPEAT
WRITELN(x/(x+1):10:3);
x := x+1;
UNTIL x = 5 {dokud nenφ v²raz pravdiv²}
WRITELN('*** konec cyklu REPEAT ***');
ENDPROC