Gray code by ozy4dm

i,k;main(n,v){for(n=~v%9;printf(i?&v:"Gray code  n=%d",n);)v=k?(i^i>>1)>>--k&1|48:~--i>>(k=n)?0:10;}

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

download

return to the top page