Created
July 17, 2014 14:04
-
-
Save anonymous/405c29cfbbfe37242e2d to your computer and use it in GitHub Desktop.
Fahrenheit to Celsius
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
#!/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