Created
November 4, 2020 18:33
-
-
Save kenmazaika/7f7b7f9c296056784e665a7e26f696c6 to your computer and use it in GitHub Desktop.
This file contains 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
// 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