function enough($guess, $x) { if (absolute(square($guess) - $x) < 0.0001) { return true; } return false; }
<?php /*function diff21($n){ if($n<21){ return (21-$n); } else{ return ($n-21)*2; } }*/ function absolute($n) { if ($n < 0) { return -$n; } else { return $n; } } print absolute(-2);
public function __construct($loc) { parent::__construct("see other", 303, absolute($loc)); }