Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Having a little fun with the Fixnum class
- #!/usr/bin/env ruby -wKU
- class Fixnum
- def to_centigrade
- ((self-32)/1.8*100).round/100.00
- end
- end
- puts "Temputure in fahrenheit to convert:"
- puts gets.to_i.to_centigrade
Add Comment
Please, Sign In to add comment