int m = c; if (a <= b) return a; else return m;