Created
August 3, 2013 01:02
-
-
Save carwin/6144614 to your computer and use it in GitHub Desktop.
This file contains 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
def convert(temp) | |
(temp.to_f - 32) * 5/9 | |
end | |
puts "Give it to me in Fahrenheit:" | |
temp = gets | |
puts "Here it is in Celsius: " + convert(temp).to_s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment