Showing posts with label Rodnay Zaks. Show all posts
Showing posts with label Rodnay Zaks. Show all posts

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:




Thursday, April 4, 2019

GREETING

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

Moving on to another book!



GREETINGS is an example program from page 6 of the book "Introduction To PASCAL (Including UCSD PASCAL) Second Edition Revised" by Rodnay Zaks and published by Sybex.

This is just another Hello, World! type program.




As you can see, in ATARI PASCAL, like many versions of PASCAL, uppercase and lowercase can be used interchangeably.

When you run the compiled and linked program D2:GREETINGS.COM, it looks like: