Skip to content

Instantly share code, notes, and snippets.

@zonble
Created April 5, 2012 16:12
Show Gist options
  • Select an option

  • Save zonble/2312228 to your computer and use it in GitHub Desktop.

Select an option

Save zonble/2312228 to your computer and use it in GitHub Desktop.
寫來練習…
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