Guest User

Untitled

a guest
Nov 21st, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. class Temperature
  2. def Temperature.c2f(c)
  3. f*9.0/5+32
  4. end
  5. def Temperature.f2c(f)
  6. (c-32)*5/9.0
  7. end
  8. end
  9.  
  10. puts Temperature.c2f(100)
  11. puts Temperature.f2c(212)
Add Comment
Please, Sign In to add comment