public static int min(int a, int b, int c)
{
int result = 0 ;
if( a < b && a < c && b < c) result = a ;
else if( a < b && a < c && b > c) result = a ;
else if( a > b && a < c && b < c) result = b ;
else if( a < b && b > c && c < a) result = c ;
else if( a > b && b < c && a > c) result = b ;
else if( a > b && a > c && c < b) result = c ;
return result ;
}
Is it better than nested `if` statements? Is there a **more readable solution** than this? To me it looks pretty readable, but I'm not sure whether it can be improved.