Number guess 1000 by Endres

<?while($b=fgetss(STDIN)){$c=$a=500;while($c!=$b){$a/=2;echo"$c ".($c>$b?'>':'<')."\n";$c=round($c+($c>$b?-1:1)*$a);}echo"$c =\n\n";}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page