Skip to content

Instantly share code, notes, and snippets.

@Lin4ipsum
Created August 9, 2012 22:43
Show Gist options
  • Save Lin4ipsum/3308742 to your computer and use it in GitHub Desktop.
Save Lin4ipsum/3308742 to your computer and use it in GitHub Desktop.
Celsius_to_fahrenheit_converter.rb
print "What celsius tempurature would you like convert to farhenheith?"
celsius = gets.chomp.to_i
fahrenheit = (celsius *9/5 + 32)
puts "The result is: #{fahrenheit}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment