Write a program to convert Temperature Fahrenheit to Celsius and
Celsius to Fahrenheit.
Answers
Answered by
3
Answer:
#include <iostream>
using namespace std;
int main()
{
float frh, cel;
cout << "\n\n Convert temperature in Celsius to Fahrenheit :\n";
cout << "---------------------------------------------------\n";
cout << " Input the temperature in Celsius : ";
cin >> cel;
frh = (cel * 9.0) / 5.0 + 32;
cout << " The temperature in Celsius : " << cel << endl;
cout << " The temperature in Fahrenheit : " << frh << endl;
cout << endl;
return 0;
}
Explanation:
Run and execute to view results
Similar questions
English,
2 months ago
Chemistry,
5 months ago
English,
5 months ago
India Languages,
10 months ago
English,
10 months ago