Code:
Output:
// kelvin Temperature to Celsius
Temperature converter in c plus plus
#include<iostream>
using namespace std;
void main()
{
float kelvin,Celsius=0;
cout<<"Enter Temperature in kelvin = ";
cin>>kelvin;
Celsius=kelvin-
273.15;
cout<<"Temperature in Celsius = "<<Celsius<<endl;
}
Output:
0 Questions:
Post a Comment