3 /* print Fahrenheit-Celsius table
4 for fahr = 0, 20, ..., 300; floating-point version */
8 float lower
, upper
, step
;
10 lower
= 0; /* lower limit of temperatuire scale */
11 upper
= 300; /* upper limit */
12 step
= 20; /* step size */
16 while (fahr
<= upper
) {
17 celsius
= (5.0/9.0) * (fahr
-32.0);
18 printf("%3.0f %6.1f\n", fahr
, celsius
);