i;main(k,a){for(a=-a%9;printf(!k--?k=a,"\n":"Gray code n=%d"+13*!!i++,i?(i*2^i)>>k&1:a)<<a>~--i;);}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page