Horje
c++ program to convert celsius to kelvin Code Example
c++ program to convert celsius to kelvin
#include<iostream>
using namespace std;
float madam(float strict);
int main()
{
	float kalvin;
	float celsius;
	cout<<"Please Enter your Tem in celsius=";
	cin>>celsius;
	kalvin=madam(celsius);
	cout<<"\nkalvin="<<kalvin<<".k"<<endl;
	return 0;
}
float madam(float celsius)
{
	float kalvin;
	kalvin=(celsius+273.15);
	return kalvin;
}
c++ program to convert kelvin to celsius
#include<iostream>
using namespace std;
float program(float mamo);
int main()
{
	float kalvin;
	float celsius;
	cout<<"Please Enter your Tem in Kelvin=";
	cin>>kalvin;
	celsius=program(kalvin);
	cout<<"\nCelsius="<<celsius<<".C"<<endl;
	return 0;
}
float program(float kalvin)
{
	float celsius;
	celsius=(kalvin-273.15);
	return celsius;
}
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
cin une énumération Code Example cin une énumération Code Example
faxc Code Example faxc Code Example
Chef and IPC Certificates codechef solution in c++ Code Example Chef and IPC Certificates codechef solution in c++ Code Example
how to create more than one vector in vector cpp Code Example how to create more than one vector in vector cpp Code Example
comment installer boost c++ sur windows Code Example comment installer boost c++ sur windows Code Example

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