Max = A if B > Max then Max = B if C > Max then Max = C Или по-другому if (A>B) and (A>C) then Max = A if (B>A) and (B>C) then Max = B if (C>B) and (C>A) then Max = C