Horje
C++ Converting Kelvin to Fahrenheit Code Example
C++ Converting Kelvin to Fahrenheit
	float far, kel;

    cout << "Enter the temperature in Kelvin: ";
    cin >> kel;

    far = 1.8 * (kel - 273.15) + 32; //° F = 9/5(K - 273) + 32 
    								//or ° F = 9/5(K - 273.15) + 32

    cout << "The temperature of " << kel << " in Fahrenheit is: " << far;




Cpp

Related
qstring insert character Code Example qstring insert character Code Example
how to convert a string to a double c++ Code Example how to convert a string to a double c++ Code Example
how to print numbers with only 2 digits after decimal point in c++ Code Example how to print numbers with only 2 digits after decimal point in c++ Code Example
c++ coding structure Code Example c++ coding structure Code Example
shuffle vector c++ Code Example shuffle vector c++ Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10