I need some help with a program for converting Fahrenheit to Celsius in C. My code looks like this
#include int main(void) { int fahrenhe
You problem is here :
celsius = (5/9) * (fahrenheit-32);
5/9 will always give you 0. Use (5.0/9.0) instead.
5/9
0
5.0/9.0