Skip to content

Instantly share code, notes, and snippets.

@craigmartin
Created August 2, 2011 19:17
Show Gist options
  • Save craigmartin/1120956 to your computer and use it in GitHub Desktop.
Save craigmartin/1120956 to your computer and use it in GitHub Desktop.
#9. Given the alphabet, print letter 1 is a, letter 2 is b .. (used print for producing results as requested.)
short_enum = (1..26).to_enum
long_enum = ('a'..'z').to_enum
loop do
print "letter #{short_enum.next} is #{long_enum.next}, "
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment