#include /* illustrates i/o of ints and doubles * illustrates arithmetic operations * fahrcels.c */ int main() { int ifahr; double dfahr; printf("enter a Fahrenheit temperature: "); scanf("%i", &ifahr); printf("\n"); printf("%i = %i Celsius \n", ifahr, ((ifahr - 32) * 5/9)); /* int computation */ printf("\n"); printf("enter another temperature: "); scanf("%lf", &dfahr); printf("\n"); printf("%6.2f = %6.2f Celsius \n", dfahr, ((dfahr - 32.0) * 5/9)); /* double comp */ return 0; }