Skip to content

Instantly share code, notes, and snippets.

@martinium
Created December 26, 2016 19:48
Show Gist options
  • Save martinium/23543477102473d65c846dcb5cf2be64 to your computer and use it in GitHub Desktop.
Save martinium/23543477102473d65c846dcb5cf2be64 to your computer and use it in GitHub Desktop.
Temperature Table in F, C and K
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