Tuesday, November 20, 2012

Celsius to Fahrenheit in C++ program

The simple code to find temperature from Celsius to Fahrenheit  in C++




































CODE*********************************************************************


#include "stdafx.h"
#include
using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{ double a;

double e;

cout <<"Celcious To Fahrenheit Converter"<< endl;
cout <<"-------------------------------"<< endl;

cout << "Enter Celcius Value:";
cin >> a;

e=(a/5)*9+32;


cout <<"Fahrenheit is: "<< e << endl;


return 0;
}

********************************************************************************
then execute the program


2 comments: