Created
August 4, 2015 05:52
-
-
Save Steph-harris/281129d43a3cfb4fd958 to your computer and use it in GitHub Desktop.
Ex. 21 Ruby
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 "Hello" + " " + name | |
end | |
greeting |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment