Skip to content

Instantly share code, notes, and snippets.

@bjhaid
Created August 16, 2012 15:58
Show Gist options
  • Save bjhaid/3371318 to your computer and use it in GitHub Desktop.
Save bjhaid/3371318 to your computer and use it in GitHub Desktop.
#This Script would ask for a person's first name, middle name, last name, and age separately, and would print, My first name is Ayodele, Adeniyi Abejide, I am 28 years old
puts "what is your first name?"
first_name = gets.chomp
puts "what is your middle name?"
middle_name = gets.chomp
puts "what is your last name?"
last_name = gets.chomp
puts "how old are you?"
age = gets.chomp
print "My first name is #{first_name}, #{middle_name}, #{last_name} I am #{age} years old"
sleep 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment