Created
September 2, 2015 16:28
-
-
Save Socratic1/f5a85be3a1597b9bc82d to your computer and use it in GitHub Desktop.
This file contains 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
def choose | |
puts "Do you like programming? Yes or no please." | |
choice = gets.chomp | |
if (choice.downcase == "yes") | |
puts "That\'s great!" | |
elsif (choice.downcase == "no") | |
puts "That\'s too bad!" | |
else | |
puts "That wasn't a yes or no." | |
end | |
end | |
choose |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment