Westonci.ca makes finding answers easy, with a community of experts ready to provide you with the information you seek. Explore a wealth of knowledge from professionals across various disciplines on our comprehensive Q&A platform. Discover in-depth answers to your questions from a wide network of professionals on our user-friendly 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:

Thank you for your visit. We are dedicated to helping you find the information you need, whenever you need it. We hope you found what you were looking for. Feel free to revisit us for more answers and updated information. Thank you for trusting Westonci.ca. Don't forget to revisit us for more accurate and insightful answers.