home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
pascal
/
interpre
/
p_pascal
/
samples
/
max.pas
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Pascal/Delphi Source File
|
1989-04-21
|
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.