Created
August 9, 2012 22:43
-
-
Save Lin4ipsum/3308742 to your computer and use it in GitHub Desktop.
Celsius_to_fahrenheit_converter.rb
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
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