Here is the function:
double celsius(double f){ return 5. / 9. * (f - 32);}
#include double celsius(double);int main(){ double f; for(f = -40; f <= 220; f = f + 10) printf("%f\t%f\n", f, celsius(f)); return 0;}
No comments:
Post a Comment