Sunday, 9 August 2015

Fahrenheit to Rankine Converter

Leave a Comment
Questions:

Fahrenheit to Rankine Converter

Code:

// Fahrenheit to Rankine Converter

#include<iostream>
using namespace std;

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

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




Output

Fahrenheit to Rankine Converter
Fahrenheit to Rankine Converter

If You Enjoyed This, Take 5 Seconds To Share It