Skip to content

Instantly share code, notes, and snippets.

Created July 17, 2014 14:04
Show Gist options
  • Save anonymous/405c29cfbbfe37242e2d to your computer and use it in GitHub Desktop.
Save anonymous/405c29cfbbfe37242e2d to your computer and use it in GitHub Desktop.
Fahrenheit to Celsius
#!/usr/bin/ruby -w
input = readline.chomp.split.map(&:to_f).map{|i| (i - 32) * (5.0/9.0)}.each {|i| print i.round.to_s + " "}
puts ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment