Skip to content

Instantly share code, notes, and snippets.

@rebeccabartels
Created January 14, 2017 19:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rebeccabartels/e2b20c8b28d98c4c0364bbdf541b2a95 to your computer and use it in GitHub Desktop.
Save rebeccabartels/e2b20c8b28d98c4c0364bbdf541b2a95 to your computer and use it in GitHub Desktop.
First Program In Ruby created by rebeccabartels - https://repl.it/FJ3S/0
#First little program - gets.chomp!
puts "Hello, World!"
person = 1
p person
angela = "Angela"
puts "Hi #{angela}!"
name = "Jennifer"
puts "Hi, my name is #{name}!"
puts "What's your name?"
name = gets.chomp
puts "Hi, #{name}"
#The Wordsmusher
puts "Give me a word!"
word_1 = gets.chomp
puts "And Another!"
word_2 = gets.chomp
result = word_1 + word_2
puts "The result is #{result}!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment