/* Prints a fahrenheit to celsius conversion table */ #include int ftc(int temp) { return 5 * (temp-32) / 9; } int main(void) { int fahr; int lower, upper, step; lower = 0; upper = 300; step = 20; fahr = lower; printf("Fahr\tCels\n"); while (fahr <= upper) { printf("%d\t%d\n", fahr, ftc(fahr)); fahr = fahr + step; } }