int max(int x, int y) { int result = y; if (x > y) { result = x; } return result; }