Sunday, 9 August 2015

Celsius to Kelvin Converter

Leave a Comment
Questions:

Celsius to Kelvin Converter

Code:

// Celsius to Kelvin Converter by cppexamples.blogspot.com

#include<iostream>
using namespace std;

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

//Defination
float Celsius_to_Kelvin(float Celsius){
return Celsius+273.5;
}


Output


If You Enjoyed This, Take 5 Seconds To Share It