home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
forth
/
compiler
/
fpc
/
source
/
p3_4bs.seq
< prev
next >
Wrap
Text File
|
1990-04-06
|
752b
|
24 lines
\ Balraj Sidhu Set: 14D4
\ Comp 462 - Forth
\ Date: April 6, 1990
\ Problem 3.4
COMMENT:
Floored Division
----------------
m n r q Check: n * q + r
----------------------------------------------------------------------------
13 5 3 2 5 * 2 + 13
-11 5 4 -3 5 * -3 + 4
-2 5 3 -1 5 * -1 + 3
13 -5 -2 -3 -5 * -3 + -2
-11 -5 -1 2 -5 * 2 + -1
-2 -5 -2 0 -5 * 0 + -2
COMMENT;