writeln("Gray code n=",n:=File standardInput readLine asNumber) for(i,0,2**n-1,writeln(("".. 2**n+i/2^i) toBase(2)slice(1)))
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page