2013-08-24 11:56:34 UTC
// Celsius temperature value as an argument and then returns the equivalent
// Fahrenheit value. the program should request Celsius value as input from the
// user and display the result, as shown in the following code:
// Please enter a Celsius value: 20
// 20 degrees Celsius is 68 degrees Fahrenheit.
// For reference, here is the formula for making the conversion:
// Fahrenheit = 1.8 * degrees Celsius + 32
#include
using namespace std;
int main()
{
int cels, fahr;
fahr = (1.8 * cels) + 32;
cout << "Please enter a Celsius value: " << endl;
cin >> cels;
cout << cels << " degrees Celsius is " << fahr << " degrees Fahrenheit." << endl;
system("pause");
return 0;
}