numof 1 bits in 0 to 255 by pooq

for i:0thru 255 do(a:0,for j:0thru 7 do a:a+mod(floor(i/2^j),2),printf(?t,"~d",a));

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

download

return to the top page