Sunday, 9 August 2015

Fahrenheit to kelvin Converter

Leave a Comment
Questions:

Fahrenheit to kelvin Converter

Code:

// Fahrenheit to kelvin Converter

#include<iostream>
using namespace std;

//Prototype
float Fahrenheit_to_kelvin(float);
void main()
{
       //Title
       cout<<"\tFahrenheit to kelvin Converter"<<endl<<endl;
       float fahrenheit=0;
       cout<<"Enter Fahrenheit = ";
       cin>>fahrenheit;
       cout<<"kelvin === "<<Fahrenheit_to_kelvin(fahrenheit)<<endl;
}

//Defination
float Fahrenheit_to_kelvin(float fahrenheit){
return (fahrenheit+459.67)/1.8;
}




Output

Fahrenheit to kelvin Converter
Fahrenheit to kelvin Converter

If You Enjoyed This, Take 5 Seconds To Share It