C program to convert Fahrenheit to Celsius always prints zero

5/9 will result in integer division, which will = 0

Try 5.0/9.0 instead.

Leave a Comment