Friday, 11 December 2015

Write a program that input temprature is fahrenheit and conver it into Celsius

#include<iostream>
#include<conio.h>
#include<cmath>
using namespace std;
int main()
{ float f,c;
 cout<<"Enter temprature is fahrenheit to conver into Celsius"<<endl;
 cin>>f;
 c=5.0/9.0*(f-32.0);
 cout<<"temprature in Celsius = "<<c;
 getch();
}

No comments:

Post a Comment