I finally broke down and wrote my first header file, but one of my functions is acting a little weird... This function is supposed to convert from Celsius to Fahrenheit but whenever I call the function, it returns an incorrect value. Is there an easy way to multiply the float by 9/5?
float ctof(float temp)
{
float fahrenheit = temp;
fahrenheit = (9/5)*fahrenheit + 32;
return fahrenheit;
}