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;
}
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
Hi are you Naidanac55 from youtube?
ReplyDeletesorry, i'm not. thanks for coming.
ReplyDelete