Created
June 11, 2011 23:02
-
-
Save andreacfm/1021064 to your computer and use it in GitHub Desktop.
ruby_gets
This file contains hidden or 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
| print "What is your name? " | |
| $stdout.flush | |
| name = gets | |
| puts 'Hi ' + name + '!!!' + name | |
| # => Hi andrea | |
| # !!! | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment