-
-
Save stefanpenner/160132 to your computer and use it in GitHub Desktop.
This file contains 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 there, what's your name" | |
name = gets | |
puts "What's your middle name, #{name}" | |
mname = gets.chomp | |
puts "What's your last namme, #{name} #{mname}" | |
lname = gets.chome | |
puts "Wow, so your name is #{name} #{mname} #{lname}" | |
puts "What's your favorite number?" | |
number = gets.chomp.to_i | |
add= 1 | |
sum = add + number | |
puts "If you add 1 to #{number}, you get (#{number + add}), which equals #{sum}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment