Code:
#include <stdio.h>
#define CFRATIO (9.0/5.0)
#define FCRATIO (5.0/9.0)
int main (void)
{
/* Local Definitions */
int i;
/* Statements */
printf("Celcius -> Farenheit Conversion Table\n");
for ( i = 0; i <= 100; i++) {
/* Centigrade to Fahrenheit */
printf("%.2f\t", (CFRATIO * i) + 32);
if( ( (i+1) % 10 ) == 0 ) {
printf("\n");
}
}
printf("\nFahrenheit -> Celcius Conversion Table\n" );
for ( i = 32; i <= 212; i++) {
/* Fahrenheit to Centigrade */
printf("%.2f\t", (i - 32) * FCRATIO );
if( ( (i+1) % 10 ) == 0 ) {
printf("\n");
}
}
printf("\n");
return 0;
}
Cleaned up your code a bit and fixed a few bugs.