home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 June
/
PCWorld_1998-06_cd.bin
/
software
/
Programy
/
Ozogan
/
CYKLUS.IPS
< prev
next >
Wrap
Text File
|
1998-03-25
|
616b
|
32 lines
VAR
x : real
ENDVAR
PROCEDURE main
ConsoleClear;
ConsoleShow;
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