int min(int x, int y) { int result = y; if (x < y) { result = x; } return result; }