Created
October 8, 2012 03:03
-
-
Save big-samantha/3850497 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
#wooo we're making a function | |
def convert_feet_to_meters(number_of_feet) | |
puts "You have #{number_of_feet} feet." | |
number_of_meters = number_of_feet * 0.3048 | |
puts "That's equal to #{number_of_meters} meters!" | |
end | |
convert_feet_to_meters(3) | |
puts 'How many feet do you have?' | |
feet_haved = STDIN.gets.chomp | |
convert_feet_to_meters(feet_haved) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment