im trying to write a temp conv. program from fahr to cel. by using a function , it works but im trying to make it print a number after the decimal and it gets all messed up...
this works all right but how do u get it to print numbers after the decimal? i tried changing d into a float as well as c but they all come out messed up.
#define NEXTSTEP 20
int convertingfunction(int, int);
for(c = 0; c <= 300; c = c + 20)
printf("%d %3d\n", c, convertingfunction(c,i));
int convertingfunction(int whzzup, int hehehe)
d = 0;
d = (5.0/9.0) * (whzzup-32);