home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mega CD-ROM 1
/
megacd_rom_1.zip
/
megacd_rom_1
/
MAGAZINE
/
DDJMAG
/
DDJ9102.ZIP
/
STRUCTUR.ASC
< prev
next >
Wrap
Text File
|
1990-12-26
|
401b
|
29 lines
_STRUCTURED PROGRAMMING COLUMN_
by Jeff Duntemann
[Figure 1: The Zeller expression]
(m + 1) * 26 K J
q + ------------ + K + --- + --- - 2*J
10 4 4
[FIGURE 2]
FUNCTION Modulus(X,Y : Integer) : Integer;
VAR
Holder : Integer;
BEGIN
Holder := X MOD Y;
IF Holder < 0 THEN Inc(Holder,Abs(Y));
Modulus := Holder;
END;