<?for(fscanf(STDIN,"%d%d",$a,$b);$i<$a*$b;)echo(($b%2?0:$i/$b)+ ++$i)%2,$i%$b?" ":" ";
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page