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