Created
August 16, 2012 15:58
-
-
Save bjhaid/3371318 to your computer and use it in GitHub Desktop.
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
#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