Created
December 26, 2016 19:48
-
-
Save martinium/23543477102473d65c846dcb5cf2be64 to your computer and use it in GitHub Desktop.
Temperature Table in F, C and K
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
fahr = 0 | |
while fahr <= 500 | |
celsius = 5.0 * (fahr - 32.0) / 9.0 | |
kelvin = 273.15 + celsius | |
puts "#{fahr}\t #{celsius}\t #{kelvin}\t" | |
fahr += 1 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment