๐ก๏ธ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
โ Enter (Mac) ยท Ctrl+Enter (Win/Linux)
โ Enter (Mac) ยท Ctrl+Enter (Win/Linux)