m,l,t;main(n){for(gets(&n);t<1<<n;t=m&-m++)printf(m?"\n%0*o":"Gray code n=%d",n%=8,l^=t*t*t);}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page