Created
April 5, 2012 16:12
-
-
Save zonble/2312228 to your computer and use it in GitHub Desktop.
寫來練習…
This file contains hidden or 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
| object Converter { | |
| def CelcusToFahrenhei(TC:Double):Double = { | |
| return TC * (9.0/5.0) + 32.0; | |
| } | |
| def FarentheitToCelcus(TF:Double):Double = { | |
| return (5.0/9.0) * (TF - 32.0); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment