/* Prints a table of Celsius to Fahrenheit conversions */ #include int main(void) { float fahr, celsius; int lower, upper, step; lower = 0; upper = 160; step = 20; celsius = 0; printf("Cels\tFahr\n"); while (celsius <= upper) { fahr = (celsius*9)/5 + 32; printf("%.0f\t%.0f\n", celsius, fahr); celsius += step; } return 0; }