#include int ftoc(int lower, int upper, int step); /* print Fahrenheit-Celsius table */ int main() { ftoc(0, 300, 20); return 0; } /* ftoc: print Farenheit-Celsius table */ int ftoc(int lower, int upper, int step) { float fahr, celsius; fahr = lower; while (fahr <= upper) { celsius = (5.0/9.0) * (fahr-32.0); printf("%3.0f %6.1f\n", fahr, celsius); fahr = fahr + step; } return 0; }