Created
October 7, 2017 16:14
-
-
Save khan-hasan/2d9d41070fac5b5baa67e88fb0ebe5b8 to your computer and use it in GitHub Desktop.
CF 3.1 | simple "hello world" program in ruby
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
| 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