Horje
c++ program to convert  kelvin to fahrenheit Code Example
c++ program to convert kelvin to fahrenheit
#include<iostream>
using namespace std;
float program(float mamo);
int main()
{
	float kalvin;
	float fahrenhiet;
	cout<<"Please Enter your Tem in Kelvin=";
	cin>>kalvin;
	fahrenhiet=program(kalvin);
	cout<<"\nFahrenhiet="<<fahrenhiet<<".F"<<endl;
	return 0;
}
float program(float kalvin)
{
	float fahrenhiet;
	fahrenhiet=(9/5*(kalvin-273.15)+32);
	return fahrenhiet;
}
c++ program to convert fahrenheit to kelvin
#include<iostream>
using namespace std;
float program(float mamo);
int main()
{
	float kalvin;
	float fahrenhiet;
	cout<<"Please Enter your Tem in Fahrenhiet=";
	cin>>fahrenhiet;
	kalvin=program(fahrenhiet);
	cout<<"\nKelvin="<<kalvin<<".k"<<endl;
	return 0;
}
float program(float fahrenhiet)
{
	float kalvin;
	kalvin=(5/9*(fahrenhiet-32)+273.15);
	return kalvin;
}




Cpp

Related
c++ cstring to string Code Example c++ cstring to string Code Example
how to print std::string Code Example how to print std::string Code Example
atan2 Code Example atan2 Code Example
mm Code Example mm Code Example
test3 Code Example test3 Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8