Write a program to convert Fahrenheit to Celsius in C++.
This program is really simple we just use the following formula to get the converted temperature.
Celsius = (fahrenheit - 32) / 1.8
PROGRAM:
#include <iostream>
using namespace std;
int main()
{
float celsius;
float fahrenheit;
cout << "Enter Fahrenheit temperature: ";
cin >> fahrenheit;
celsius = (fahrenheit-32)/1.8;
cout << "Temperature in Celsius = " << celsius << endl;
return 0;
}OUTPUT:
