At Westonci.ca, we connect you with experts who provide detailed answers to your most pressing questions. Start exploring now! Connect with a community of experts ready to provide precise solutions to your questions on our user-friendly Q&A platform. Discover detailed answers to your questions from a wide network of experts on our comprehensive Q&A platform.

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: