Skip to content

Instantly share code, notes, and snippets.

@carwin
Created August 3, 2013 01:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save carwin/6144614 to your computer and use it in GitHub Desktop.
Save carwin/6144614 to your computer and use it in GitHub Desktop.
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