Created
January 21, 2015 22:16
-
-
Save troyleach/ff5e4b3ac81ecae9eba9 to your computer and use it in GitHub Desktop.
screencast 11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks good to me 😀