#include /* print Celsius-Fahrenheit table */ int main() { float celsius, fahr; int lower, upper, step; lower = 0; upper = 300; step = 20; printf("%3s %6s\n", "C", "F"); celsius = lower; while (celsius <= upper) { fahr = celsius / (5.0/9.0) + 32.0; printf("%3.0f %6.0f\n", celsius, fahr); celsius = celsius + step; } }