Answers for "C++ Fahrenheit to Celsius"

C++
1

C++ Fahrenheit to Celsius

float far, cel;
    
    cout << "Enter the temperature in Fahrenheit: ";
    cin >> far;

    cel = (far - 32) / 1.8;      //(°F - 32) / 1.8 = °C

    cout << "The temperature of " << far << " in Celsius is: " << cel;
Posted by: Guest on March-03-2022

Code answers related to "C++ Fahrenheit to Celsius"

Browse Popular Code Answers by Language