Skip to content

Instantly share code, notes, and snippets.

@wishdev
Created June 29, 2009 05:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wishdev/137478 to your computer and use it in GitHub Desktop.
Save wishdev/137478 to your computer and use it in GitHub Desktop.
def get_word
@word = gets.chomp
@word
end
words = []
while get_word != ''
words << @word
end
puts
puts words.sort
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment