/* The Fahrenheit-to-Celcius Conversion Table */
#include <stdio.h>
#define CBEGIN 10
#define CLIMIT -5
#define CSTEP 5
int
main(void)
{
int celcius;
double fahrenheit;
/* table heading */
printf ("Celcius Fahrenheit\n");
printf ("------- ----------\n");
/* table display */
for (celcius = CBEGIN;
celcius >= CLIMIT;
celcius -= CSTEP) {
fahrenheit = 1.8 * celcius + 32;
printf ("%5d %13.1lf\n", celcius, fahrenheit);
}
return (0);
}