Number guess 1000 by pooq

var a,b=0;var c=0.;while(0<1){a=readInt;b=500;c=b;while(a!=b){c=c/2;println(b+(if(a>b)" <"else" >"));b=(.5+b+(if(a>b)c else -c))toInt};println(b+" =\n")}

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

download

return to the top page