home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
lifeos2.zip
/
LIFE-1.02
/
TESTS
/
LF
/
MORT.LF
< prev
next >
Wrap
Text File
|
1996-06-04
|
186b
|
10 lines
mort(P,Time,I,MP,B)
:- 0 < Time, Time =< 1,
Int = Time*(P*I/1200),
B = P+Int-(Time*MP).
mort(P,Time,I,MP,B)
:- Time > 1,
Int = P*I/1200,
mort(P+Int-MP,Time-1,I,MP,B).