Comparing two numbers by CameronM

<?php $h = fopen('php://stdin','r');while(($l=fgets($h, 4096))!==false){$a=explode(' ',$l);$r=$a[0]-$a[1];switch($r){case 0:$s="=";break;case $r>0:$s=">";break;default:$s="<";} echo $a[0]." $s ".$a[1];}?>

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

download

return to the top page