Skip to content

Instantly share code, notes, and snippets.

@kenmazaika
Created November 4, 2020 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenmazaika/7f7b7f9c296056784e665a7e26f696c6 to your computer and use it in GitHub Desktop.
Save kenmazaika/7f7b7f9c296056784e665a7e26f696c6 to your computer and use it in GitHub Desktop.
// Convert Celsius to degrees Fahrenheit
func convert(celsius: Float) {
celsius * 9 / 5 + 32
}
val input = 45.0
println("The temperature " + input + " Celsius is " + convert(input) + " Fahrenheit")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment