Created
December 6, 2018 21:31
-
-
Save marek2901/8b29ab89cf3a0302bf16dbaf1087d22d to your computer and use it in GitHub Desktop.
Lublin IT Ruby 101 Hello World
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
puts "Hello world" | |
# => Hello world | |
# | |
puts "1 + 1 is #{1 + 1}" | |
# => 1 + 1 is 2 | |
puts "Type smth" | |
answer = gets.chomp | |
puts "You typed #{answer}" | |
# Type smth | |
# xDDD | |
# You typed xDDD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment