Friday, April 3, 2020

GREETING.P

[Table of Contents]


Greeting.p 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.

What's on the disk?


The disk image includes the various Atari DOS 2.5 files, Kyan Pascal Include files (none of which are used in this program), Kyan Pascal Run-time library, and ...

GREETING.P - Source code file
P.OUT - Kyan Pascal intermediate file
GREETING - Executable file

Source Code


(* Greeting.p *)
(* Kyan Pascal 2.x / Atari 8-bit *)

Program Greeting(Input,Output);

(* This program is a simple Pascal program *) (* Comment *)

Begin

   Write(Chr(125)); (* Clear screen *)
   Writeln('Hello'); (* Statement *)
   Writeln;
   Writeln('Press <RETURN> to exit program.');
   Readln;
End. 

Sample Run



No comments:

Post a Comment