#include using namespace std; int main() { float tempInF{0}; float tempInC{0}; int intTempInC{0}; cout << "Enter the temp in F => "; cin >> tempInF; // just plain wrong //tempInC = 5/9*(tempInF -32); // ok //tempInC = float(5)/float(9)*(tempInF -32); // //tempInC = static_cast(5)/static_cast(9)*(tempInF -32); //tempInC = 5.0/9 * (tempInF - 32); tempInC = 5.0/9.0 * (tempInF - 32.0); //NO NO NO! //tempInC = float(5/9) * (tempInF - 32.0); intTempInC = static_cast(tempInC+ 0.5); cout << "That is " << tempInC << endl; cout << "That is " << intTempInC << endl; return 0; }