Guest User

Untitled

a guest
Apr 26th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. # Having a little fun with the Fixnum class
  2. #!/usr/bin/env ruby -wKU
  3.  
  4. class Fixnum
  5. def to_centigrade
  6. ((self-32)/1.8*100).round/100.00
  7. end
  8. end
  9.  
  10. puts "Temputure in fahrenheit to convert:"
  11. puts gets.to_i.to_centigrade
Add Comment
Please, Sign In to add comment