/* Name: Andrew Charles Breiner * Homework 1 * Chapter 2, Page 91, Program 4 * Convert temp for Fahrenheit to Celsius */ #include /* printf, scanf definitions */ int main(void) { double celsius; /* declares as type double */ int fahrenheit; /* declares as type int */ /* Asks user for temp. in Fahrenheit */ printf("Enter the temp. in whole degrees Fahrenheit: "); scanf("%d", &fahrenheit); /* Convert temperature */ celsius = (5.0 / 9.0) * (fahrenheit - 32.0); /* Output temperature */ printf("The temp. in celsius is %.1f degrees.\n", celsius); return 0; } //main