Tuesday, April 16, 2019

FIBONACCI

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

FIBONACCI is a short program from page 123 of the book "Introduction To PASCAL (Including UCSD PASCAL) Second Edition Revised" by Rodnay Zaks and published by Sybex.

This program demonstrates how to use recursion in PASCAL. Recursion is the ability of a function or procedure to repeatedly call itself until some condition is met.


When you run the compiled and linked program D2:FIBONACC.COM, the output looks like:




No comments:

Post a Comment