INPUT=
#include<iostream.h>
using namespace std;
int main()
{
float fah, cel;
cout<<"Enter temperature in Fahrenheit : ";
cin>>fah;
cel=((fah-32*5) / 9);
cout<<"Temperature in Celsius = "<<cel;
return 0;
}
OUTPUT=
Enter temperature in Fahrenheit : 98.6
Temperature in Celsius =37.00000

No comments:
Post a Comment