Created
September 13, 2015 13:30
-
-
Save kasiapryczek/66b6a70535f651caa7ca to your computer and use it in GitHub Desktop.
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
Great.
FYI, In Ruby, 2 spaces is the standard indenting style. I.e.: