Skip to content

Instantly share code, notes, and snippets.

@stefanpenner
Forked from anonymous/gist:159783
Created August 2, 2009 17:07
Show Gist options
  • Save stefanpenner/160132 to your computer and use it in GitHub Desktop.
Save stefanpenner/160132 to your computer and use it in GitHub Desktop.
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