home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programmer 7500
/
MAX_PROGRAMMERS.iso
/
PASCAL
/
P_PASCAL.ZIP
/
SAMPLES
/
MAX.PAS
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
Pascal/Delphi Source File
|
1989-04-22
|
277 b
|
15 lines
(*$c+*)
program example(input,output);
var x,y : integer;
function max(z,w : integer) : integer;
begin
if z < w then max := w
else
max := z
end;
begin
write('Type: x= '); readln(x);
write('Type: y= '); readln(y);
writeln('max = ', max(x, y) : 3, '.')
end.