Created
January 14, 2017 19:21
-
-
Save beccanelson/e2b20c8b28d98c4c0364bbdf541b2a95 to your computer and use it in GitHub Desktop.
First Program In Ruby created by rebeccabartels - https://repl.it/FJ3S/0
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
#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