// Program converts Celsius to Fahrenheit // Fahrenheit =celsius * (212 - 32)/100 + 32 // #include #include #include using namespace std:: int main( int nNumberofArgs, char* pszArgs[] ) { // enter temp in celsius int celsius; cout << "Enter the temperature in Celsius:"; cin >> celsius; // Calc conversion factor to convert celsius // to Fahrenheit int factor; factor = 212 - 32; // use conversion factor to convert Celsius // into Fahrenheit values int fahrenheit; fahrenheit = factor * celsius/100 + 32; // output the results (followed by a Newline) cout << "Fahrenheit value is:"; cout << fahrenheit << end1; // wait until user is ready before terminating // program to allow user to see the program results system("PAUSE"); return 0; }