Temperature Scale Ranges
°C: degree Celsius (centigrade), °Re: RĂ©aumur, °F: degree Fahrenheit, K: Kelvin, °Ra: RankineScale Factor | °C | °RĂ©aumur | °F | K | °Rankine | |
Boiling point of water at 1 atmosphere | 100 | 80 | 212 | 373.15 | 671.67 | |
Freezing point of water at 1 atmosphere | 0 | 0 | 32 | 273.15 | 491.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;
}
OutputKelvin to Celsius Converter |
0 Questions:
Post a Comment