/* program to convert a temperature in fahrenheit
   to a temperature in celsius */

#include <stdio.h>

int main ()
{
  /* declare variables */
  int fahrenheit;   // fahrenheit will be an integer
  double celsius;   // celsius will be a double (real number)

  /* computations */
  fahrenheit = 72;
  celsius = (fahrenheit - 32.0) * 5.0 / 9.0;

  /* print results */
  printf (" %d degrees fahrenheit = %5.2lf degrees celsius\n", 
          fahrenheit, celsius);

  /* tell operating system "all is well" */
  return 0;
}
