Commit e924d050 by Đường Sỹ Hoàng

More variables and printing

parent f4c1a38c
Pipeline #95 canceled with stages
in 0 seconds
my_name = 'Zed A.Shaw'
my_age = 35 # not a lie 2009
my_height = 74 # inches
my_weight = 180 # lbs
my_eyes = 'Blue'
my_teeth = 'White'
my_hair = 'Brown'
puts "Let's talk about #{my_name}."
puts "He's #{my_height} inches tall."
puts "He's #{my_weight} pounds heavy."
puts "Actually that's not heavy."
puts "He's got #{my_eyes} eyes and #{my_hair} hair."
puts "His teeth are usually #{my_teeth} depending on the coffe."
# this line is tricky, try to get it exactly right
puts "If i add #{my_age}, #{my_height},#{my_weight} i get #{my_age + my_height+my_weight}."
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment