Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (11 sloc) 307 Bytes
#include <stdio.h>
/* print Fahrenheit-Celsius table */
#define LOWER 0 /* lower limit of table */
#define UPPER 300 /* upper limit */
#define STEP -20 /* step size */
main()
{
int fahr;
for (fahr = UPPER; fahr >= LOWER; fahr = fahr + STEP)
printf("%3d %6.1f\n", fahr, (5.0/9.0)*(fahr-32));
}