#include using namespace std; int main() { float fahrenheit{0}; float celsius{0}; int intCelsius{0}; cout << "Enter the temperature in fahrenheit => "; cin >> fahrenheit; //just broken // celsius = 5/9 * (fahrenheit - 32); // this one is ok // celsius = float(5)/float(9) * (fahrenheit - float(32)); // probably the one to do celsius = static_cast(5)/static_cast(9) * (fahrenheit - static_cast(32)); // all ok //celsius = 5.0/9 * (fahrenheit - 32); //celsius = 5.0/9.0 * (fahrenheit - 32); //celsius = 5/9.0 * (fahrenheit - 32); //celsius = static_cast(5)/9 * (fahrenheit - 32); // make the output an int. intCelsius = static_cast (celsius + 0.5); cout << "The temperature in celsius is " << intCelsius << endl; return 0; }