You are viewing a single comment's thread. Return to all comments →
C#
int CatADistance = x > z ? x - z : z - x; int CatBDistance = y > z ? y - z : z - y; if (CatADistance < CatBDistance) return "Cat A"; else if (CatADistance > CatBDistance) return "Cat B"; else return "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#