Sunday, 9 August 2015

Kelvin to Celsius Converter

Leave a Comment

Temperature Scale Ranges

°C: degree Celsius (centigrade), °Re: Réaumur, °F: degree Fahrenheit, K: Kelvin, °Ra: Rankine
Scale Factor°C°Réaumur°FK°Rankine
Boiling point of water
at 1 atmosphere
10080212373.15671.67
Freezing point of water
at 1 atmosphere
0032273.15491.67




Questions:

Kelvin to Celsius Converter

Code:

// Kelvin to Celsius Converter
#include<iostream>
using namespace std;

//Prototype
float Kelvin_to_Celsius(float);
void main()
{
       //Title
       cout<<"Kelvin to Celsius Converter by cppexamples.blogspot.com"<<endl<<endl;
       float Kelvin=0;
       cout<<"Enter Kelvin = ";
       cin>>Kelvin;
       cout<<"Celsius === "<<Kelvin_to_Celsius(Kelvin)<<endl;
}

//Defination
float Kelvin_to_Celsius(float Kelvin){
return Kelvin*0.8;
}

Output
Kelvin to Celsius Converter
Kelvin to Celsius Converter

If You Enjoyed This, Take 5 Seconds To Share It