You are on page 1of 1

program BMWM5;

var
a, b, c, max: integer;
procedure findMax(x, y, z: integer; var m: integer);
BEGIN
if x > y then
m:= x
else
m:= y;
if z > m then
m:= z;
end;
begin
writeln(‘ Indica 3 numere: ‘);
readln( a, b, c);
findMin(a, b, c, max);
writeln(‘ Maximum: ‘, max);
END.

A=7 X=7

B=4 Y=4

C=5 Z=5

Max M=7

You might also like