Questions:
Fahrenheit to Rankine Converter
Code:
Output
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 |
0 Questions:
Post a Comment