Created
May 4, 2016 14:42
-
-
Save khazelton77/bbe7c8d54d600d9b574368911e5cccb6 to your computer and use it in GitHub Desktop.
First method "Greeting"
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 greeting | |
puts "Please enter your name:" | |
name = gets.chomp | |
puts "And who is your friend?" | |
dog = gets.chomp | |
puts "Hello" + " " + name + " and " + dog | |
end | |
greeting | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment