Gray code by kurimura

import std.stdio;void main(){int n=getchar&7;write("Gray code  n=",n);foreach(i;0..1<<n)writef("\n%0*b",n,i^i/2);}

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

download

return to the top page