Skip to content

Instantly share code, notes, and snippets.

@charliemoseley
Created March 15, 2012 19:00
Show Gist options
  • Save charliemoseley/2046062 to your computer and use it in GitHub Desktop.
Save charliemoseley/2046062 to your computer and use it in GitHub Desktop.
puts "Convert Fahrenheit Temp to Celsius \nPlease enter a temp in Fahrenheit: "
response = gets.chomp
unless response.include? 'merican'
puts ((response.to_i - 32) * 5) / 9
else
puts "Oh, Oh I am terribly sorry \nPlease enter a temp in Celsius:"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment