S09 – 03 – Temperature Converter Challenge

Reassemble the code snippets below into the correct sequence to write two subroutines that convert between centigrade and Fahrenheit using the formula: F = (C * 1.8) + 32
 
One subroutine takes the temperature in degrees centigrade as a parameter and returns Fahrenheit.
The second subroutine takes the temperature in degrees Fahrenheit as a parameter and returns centigrade.
 
E.g. 30°C = 86°F
(30°C * 1.8) + 32 = 86°F

Scroll to Top