Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- name = 'Zed A. Shaw'
- age = 35 #not a lie
- height = 74 #inches
- weight = 180 #lbs
- eyes = 'Blue'
- teeth = 'White'
- hair = 'Brown'
- height_in_centimeters = height * 2.54
- weight_in_kilos = weight * 0.453592
- IO.puts "Let's talk about #{name}"
- IO.puts "He's #{height} inches tall."
- IO.puts "He's #{trunc(height_in_centimeters)} centimeters tall."
- IO.puts "He's #{weight} pounds heavy."
- IO.puts "He's #{trunc(weight_in_kilos)} kilos heavy."
- IO.puts "Actually that's not heavy."
- IO.puts "He's got #{eyes} eyes and #{hair} hair"
- IO.puts "His teeth are usually #{teeth} depending on the coffee."
- #this line is tricky, try to get it exactly right
- IO.puts "If i add #{age}, #{height} and #{weight} i get #{age + height + weight}."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement