home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
cpm
/
turbopas
/
ttutor2.lbr
/
PROG14.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1985-08-02
|
640b
|
27 lines
PROGRAM PROG14;
{$U+ Copyright (C), 1985 by Lyle Faurot. All rights reserved.
New Topics: Procedure declaration
Using procedures
Using parameters
Counter with error checking
}
VAR
Count, Adjusted_Count : Integer;
I, J, K : Integer;
PROCEDURE Add(No_1, No_2 : Integer; VAR Sum : Integer);
BEGIN
Sum := No_1 + No_2;
END;
BEGIN
Write('Enter count: ');
ReadLn(Count);
Add(2, Count, Adjusted_Count);
WriteLn('Adjusted Count is: ',Adjusted_Count);
END.