You are viewing a single comment's thread. Return to all comments →
Your solution helps me to correct my logical on PHP (I've just helped with yours)
function catAndMouse(y, $z) { if(abs(`$y-$`z) > abs(`$x-$`z)){ return "Cat A"; }else if (abs(`$x-$`z) > abs(`$y-$`z)){ return "Cat B"; } else { return "Mouse C"; } }
function catAndMouse(y, $z) {
if(abs(`$y-$`z) > abs(`$x-$`z)){ return "Cat A"; }else if (abs(`$x-$`z) > abs(`$y-$`z)){ 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 →
Your solution helps me to correct my logical on PHP (I've just helped with yours)