Probably because convertPrint is not calling convertFahrenheit correctly. What is the current code state?
Probably because convertPrint is not calling convertFahrenheit correctly. What is the current code state?
Winner winner chicken dinner.....
Code:#include <stdlib.h> #include <stdio.h> double convertFahrenheit(double value); double convertPrint(double value); int main(void) { convertPrint(212); return 0; } double convertPrint(double value) { double temp; temp = convertFahrenheit(value); printf("Your tempurature in Fahrenheit is %.2f", temp); return temp; } double convertFahrenheit(double value) { return (((value - 32.0 ) * 5.0) / 9.0); }
ohh wasn't paying attention to the bold font, more towards the red numbers. my bad. thanks for the help though, it works now
You could probably make your temperature conversion a macro instead. But I see no need to make life even more confusing for you.