home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CP/M
/
CPM_CDROM.iso
/
simtel
/
sigm
/
vols000
/
vol019
/
convert.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1984-04-29
|
614b
|
24 lines
(*********************************************************************
:
: CONVERT PROGRAM
:
: This was a class assignment in Introduction to Pascal.
: It allows you to enter the price of Gas per liter and the
: program will return the price of that gas per gallon.
:
: June 30 1980 Charlie Foster
:
**********************************************************************)
PROGRAM convert;
VAR
price, pricepg : real;
BEGIN
WRITE('Enter current price per liter of gasoline--> ');
READLN(price);
pricepg := price * 3.78;
WRITELN('Price per gallon of gasoline= ',pricepg)
END.