function min(a, b, c, d: integer): integer;beginif (a <= b) and (a <= c) and (a <= d) thenmin := aelse if (b <= a) and (b <= c) and (b <= d) thenmin := belse if (c <= a) and (c <= b) and (c <= d) thenmin := celsemin := d;end;
function min(a, b, c, d: integer): integer;
begin
if (a <= b) and (a <= c) and (a <= d) then
min := a
else if (b <= a) and (b <= c) and (b <= d) then
min := b
else if (c <= a) and (c <= b) and (c <= d) then
min := c
else
min := d;
end;