// Solution of Assignment 1.

#include <iostream>
using namespace std;

int main()
{
	float f, c;
	cout << "This program converts Fahrenheit temperature "
		<< "to Celsius temperature." << endl << endl;

	// Promot the user to enter the temperature to convert.
	cout << "Enter a Fahrenheit temperature to convert to Celsius: ";
	// Read the temperature
	cin >> f;
	// Calculate the Celsius temperature.
	c = (5./9) * (f - 32);

	// Print the corresponding Celsius temperature
	cout << endl << f << " in Fahrenheit is equal to "
		<< c << " in Celsius." << endl << endl;
	
	system("pause");
	
	return 0;
}
