Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

C++ Fahrenheit to Kelvin

	float far, kel;

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

    kel = (far + 459.67) * 5/9;      //T(K) = (T(°F) + 459.67)× 5/9

    cout << "The temperature of " << far << " in Kelvin is: " << kel;
 
PREVIOUS NEXT
Tagged: #Fahrenheit #Kelvin
ADD COMMENT
Topic
Name
9+6 =