home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.ee.pdx.edu
/
2014.02.ftp.ee.pdx.edu.tar
/
ftp.ee.pdx.edu
/
pub
/
users
/
Harry
/
compilers
/
p3
/
tst
/
expr3.pcat
< prev
next >
Wrap
Text File
|
2005-10-24
|
368b
|
15 lines
program is
var x : integer := 10;
procedure echo (q:integer) : integer is
begin
write(q);
return q;
end;
begin
write (x, " ", +x, " ", -x, " ", x + x, " ", x - x, " ",x * x,
" ", x div x, " ", x mod x);
write (10 * x * x - 20 * x + 30);
write ((echo(1)+ echo(2)) + (echo(3) + echo(4))); (* ok regardless *)
end;