Discover the best answers at Westonci.ca, where experts share their insights and knowledge with you. Get detailed and accurate answers to your questions from a dedicated community of experts on our Q&A platform. Our platform provides a seamless experience for finding reliable answers from a network of experienced professionals.

Write a program that asks the user for a temperature in degrees Celsius.

Then display the temperature in Celsius and its Fahrenheit equivalence to two decimal places.


Sagot :

Answer:

#include <iostream>

#include <iomanip>

using namespace std;

int main(){

  double celsius, fahrenheit

 

  cout << "Enter the emperature in degrees Celsius: ";

  cin >> celsius;

  cout << endl;

  fahrenheit = (celsius * 9/5) + 32;

  cout << fixed << setprecision(2) << fahrenheit;

}

Explanation: