i;j;main(n){for(printf("Gray code n=%d",n=getchar()%8);j||-i--<puts("")<<(j=n);)putchar("0110"[i>>--j&3]);}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page