Gray code by *yuko*

read*,n;print'("Gray code  n="i0,999(/b0.'//char(n+48)//'))',n,(xor(i,i/2),i=0,2**n-1);end

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

download

return to the top page