Gray code by hallvabo

puts"Gray code  n=#{m=getc-48}",(0..2**m-1).map{|n|"%0*b"%[m,n/2^n]}

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

download

return top