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