You are viewing a single comment's thread. Return to all comments →
Perl:
sub catAndMouse { my ($x, $y, $z) = @_; return "Mouse C" if (abs($y - $z) == abs($x - $z)); return (abs($y - $z) > abs($x - $z)) ? "Cat A" : "Cat B"; }
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 →
Perl: