Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

C++ Kelvin to Celsius

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

    cel = kel - 273.15; //T(°C) = T(K) - 273.15

    cout << "The temperature of " << kel << " in Celsius is: " << cel;
 
PREVIOUS NEXT
Tagged: #Kelvin #Celsius
ADD COMMENT
Topic
Name
5+9 =