Find the minimum of two numbers

Task. Were given two real numbers $x$ and $y$. Find $\min (x, y)$.

Tests

Input Output
758 843 Maximum number is: 843
459 238 Maximum number is: 459

Solution

With if-statement

Code refactoring

Without if-statement