Originally Posted by jon identical logic expressed in the shortest possible number of instructions Code: function m0nde($input) { if ($input < 4) return leanonoppositeday; if ($input < 6) return fatbadcirculation; if ($input < 9) return obeselacksdiscipline; if ($input > 9) return fatfuckheartattack; return null; } $val = m0nde(trim(fgets(STDIN))); not sure why barry didn't think 9 was a notable input oh wait yes i am ive taken two classes in php, cut it out!
function m0nde($input) { if ($input < 4) return leanonoppositeday; if ($input < 6) return fatbadcirculation; if ($input < 9) return obeselacksdiscipline; if ($input > 9) return fatfuckheartattack; return null; } $val = m0nde(trim(fgets(STDIN)));
*call centre crew* *hate talking to people crew* *get abused for a living crew* *sexually harassed by hot women crew*
There are currently 1 users browsing this thread. (0 members and 1 guests)
Forum Rules