Go 01 - Convert temperatures
Convert Fahrenheit to Celsius
Here is a simple function that takes a temperature in Fahrenheit and returns the equivalent temperature in Celsius:
func fahrenheitToCelsius(fahrenheit float64) float64 {
return (fahrenheit - 32) * 5/9
}
This functi...
code-harmony.hashnode.dev2 min read