Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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<<"
Kelvin="<<kalvin<<".k"<<endl;
	return 0;
}
float program(float fahrenhiet)
{
	float kalvin;
	kalvin=(5/9*(fahrenhiet-32)+273.15);
	return kalvin;
}
 
PREVIOUS NEXT
Tagged: #program #convert #fahrenheit #kelvin
ADD COMMENT
Topic
Name
2+2 =