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
5 and 9 are of int type hence 5/9 will always result 0.
5
9
int
5/9
0
You can use 5/9.0 or 5.0/9 or 5.0/9.0
5/9.0
5.0/9
5.0/9.0
You can also check C program for converting Fahrenheit into Celsius