Created
May 4, 2016 14:42
-
-
Save khazelton77/bf523e5842c0ee89603b46945d76d219 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