🌡️Temperature Converter LabLAB
Temperature Converter Lab
In this lab, you will implement two temperature conversion functions in Go.
Your Task
Implement the following two functions:
1. celsiusToFahrenheit(c float64) float64
- Formula:
c * 9 / 5 + 32
2. fahrenheitToCelsius(f float64) float64
- Formula:
(f - 32) * 5 / 9
Then, in main, convert and print the following:
- 100°C → °F
- 32°F → °C
- 0°C → °F
Expected Output
Ctrl+Enter to run
Ctrl+Enter to run