/* converts from Fahrenheit to Celsius * 2nd try * * */ #include <stdio.h> #define LOWER 0 #define UPPER 200 #define STEP 40 int main() { int fahr; for ( fahr = LOWER; fahr <= UPPER; fahr += STEP ) { fprintf( stdout, "F = %d\tC = %d\n", fahr, 5./9*(fahr-32)); } return 0; }