home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 June
/
PCWorld_1998-06_cd.bin
/
software
/
Programy
/
Ozogan
/
OPENARR.IPS
< prev
next >
Wrap
Text File
|
1998-03-25
|
393b
|
18 lines
FUNCTION calcSum(vector : array of integer) : integer;
VAR
i : integer;
s : integer;
ENDVAR
s := 0;
FOR i := low(vector) to high(vector)
s := s + vector[i];
ENDFOR
RETURN s;
ENDPROC
PROCEDURE main
ConsoleClear; ConsoleShow;
WRITELN('test otev°enΘho pole:');
WRITELN('SouΦet polo₧ek pole: ', IntToStr(calcSum([1, 2, 3, 4, 5, 6])));
ENDPROC