Sunday, 9 August 2015

Celsius to Rankine Converter

Leave a Comment
Questions:

Celsius to Rankine Converter

Code:

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

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

//Defination
float Celsius_to_Rankine(float Celsius){
return Celsius*1.8 + 32 + 459.67;
}




Output
Celsius to Rankine Converter
Celsius to Rankine Converter

If You Enjoyed This, Take 5 Seconds To Share It