Tuesday, March 12, 2019

LOAN3

Table of Contents ] [ List of Example Programs ] [ LOAN3 Disk Image ]

LOAN3 is an example program (Listing 8-9) that begins on page 106 of the book "Pascal Primer" by David Fox and Mitchell Waite.

This example updates the existing loan examples (LOAN1 and LOAN2) to use a function instead of a procedure call to implement a Power function that will raises X^Y. It handles Y values that are positive, negative, or zero.



The link command looks like:

LINKER V1.0
*D2:LOAN3,FPLIB,PASLIB/S

When you run the program, it looks like:




Back to List Of Example Programs

Back to Table Of Contents

No comments:

Post a Comment