Exercise: Fahrenheit to Celsius
Question
Complete the function degF_to_degC(), which converts a temperature in degrees Fahrenheit to degrees Celsius using the following formula:
The function receives the temperature in degrees Fahrenheit in the parameter degF. Store the converted value in degC and return it. Then, in main(), call the function with 4.3 and print the result using printf("%f\n", ...).
Example
Input: degF_to_degC(4.3)
Output: -15.388889
Try solving it here:
Exercise: Fahrenheit to Celsius
Question
Complete the function degF_to_degC(), which converts a temperature in degrees Fahrenheit to degrees Celsius using the following formula:
The function receives the temperature in degrees Fahrenheit in the parameter degF. Store the converted value in degC and return it. Then, in main(), call the function with 4.3 and print the result using printf("%f\n", ...).
Example
Input: degF_to_degC(4.3)
Output: -15.388889
Try solving it here: