Answers for "c++ program to convert kelvin to celsius"

C++
0

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;
}
Posted by: Guest on January-25-2022

Code answers related to "c++ program to convert kelvin to celsius"

Browse Popular Code Answers by Language