int max(int a, int b, int c) { if (a > b) { if (c > a) { return c; } else { return a; } } if (b > c) { return b; } return c; }