/* This program converts a temperature from Fahrenheit to Celsius,
   using the standard Fahrenheit-to-Celsius conversion formula.

   Input:  FahrenheitTemp
   Output: CelsiusTemp
--------------------------------------------------------------------*/

#include <iostream.h>

int main(void)
{
   cout << "\nThis program converts a temperature\n"
        << "\tfrom Fahrenheit to Celsius.\n";

   double
      FahrenheitTemp;

   cout << "\nPlease enter a Fahrenheit temperature: ";
   cin >> FahrenheitTemp;

   double
      CelsiusTemp = (FahrenheitTemp - 32.0) / 1.8;

    cout << "\n\t" << FahrenheitTemp
         << " in Fahrenheit is equivalent to "
         << CelsiusTemp << " in Celsius.\n\n";

   return 0;
}

