Infolinks - Earn Easy Money

Saturday, April 4, 2015

C++ program to convert fahrenheit into Celsius.

#include <iostream>
using namespace std;
int main ()
{
float tf;
float tc;
cout<<" Program to convert Fahrenheit into Celcius \n\n";
cout<<" Enter the temperature in Fahrenheit \n";
cin>>  tf;
tc=(tf-32)*5/9;
cout<<" Temperature in Celsius is \n" << tc;
}

No comments:

Post a Comment

Must drop your comments about post.