Study this code sample:
#include <iostream>
using namespace std;
int main()
{
cout << "-- FAHRENHEIT TO CELSIUS CONVERSION --" << endl;
cout << "Temperature in degrees Fahrenheit: ";
double fahrenheit, celsius;
cin >> fahrenheit;
celsius = (5.0/9.0) * (fahrenheit - 32.0);
cout << endl << "in degrees celsius: " << celsius << endl;
system("PAUSE");
return 0;
}