You are viewing a single comment's thread. Return to all comments →
C
char* catAndMouse(int x, int y, int z) { int a = abs(z - x), b = abs(z - y); if(a < b) return "Cat A"; return (b < a) ? "Cat B" : "Mouse C"; }
Seems like cookies are disabled on this browser, please enable them to open this website
Cats and a Mouse
You are viewing a single comment's thread. Return to all comments →
C