#include using namespace std; double temp_C, temp_F; // This assignment is worth 5 points. // -1 if the initial input goes into an int. // -1 if the output is stored in an int. // This stops decimal values from being accepted, which is far from ideal // in any kind of mathematical application. int main() { cout << "Enter temperature in F: "; cin >> temp_F; temp_C = 5.0/9*(temp_F - 32.0); cout << "Temperature in C is " << temp_C << endl; return 0; }