Gray code by kurimura

j;main(i,n){for(printf("Gray code  n=%d",n%=9u);i-->-1<<n;)putchar(!j?j=n,10:(i^i++*2)>>j--&1|48);}

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

download

return to the top page