/* program to print a table of fahrenheit temperatures and their celsius equivalents NOTE: This program contains 4 errors!!! */ #include int main () { int fahr10; // fahrenheit temperatures in 10s: 0, 10, 20, ... int fahr; // single digit fahrenheit temperatures double cel; printf ("table of fahrenheit and celsius equivalents\n"); printf (" fahrenheit tempheratures\n"); // print titles printf ("tens"); for (fahr = 1; fahr < 10; fahr++) { printf ("%7d", fahr); } // print body of table for (fahr10 = 0; fahr10 <= 100; fahr10++) { printf ("%3d ", fahr10); for (fahr = 0; fahr <= 9; fahr++) { cel = (fahr10 + fahr - 32) * 5 / 9; printf ("%7.1lf", cel); } printf ("\n"); } return 0; }