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