Skip to content

Instantly share code, notes, and snippets.

@troyleach
Created January 21, 2015 22:16
Show Gist options
  • Select an option

  • Save troyleach/ff5e4b3ac81ecae9eba9 to your computer and use it in GitHub Desktop.

Select an option

Save troyleach/ff5e4b3ac81ecae9eba9 to your computer and use it in GitHub Desktop.
screencast 11
#screen cast 11
puts "Please enter 5 words, any words"
words = []
number = 0
5.times do
puts "Enter word number #{number += 1}"
words << gets.chomp
end
words.each_with_index do |word, index|
puts index.even? ? word.upcase : word
end
@markeban

Copy link
Copy Markdown

Looks good to me 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment