Find the maximum of three numbers

Task. Were given three real numbers [latex]x[/latex], [latex]y[/latex], [latex]z[/latex]. Find [latex]\max (x, y, z)[/latex].

Tests

Input Output
4 3 8  8
0 179 45 179

Solution

With if-statement

Code refactoring