program in c++ to convert fahrenheit into centigrade

To convert Fahrenheit to Centigrade (also known as Celsius) in C++, you can use the following code:

```cpp
#include <iostream>
using namespace std;

double fahrenheitToCelsius(double fahrenheit) {
double celsius = (fahrenheit - 32) * 5 / 9;
return celsius;
}

int main() {
double fahrenheit;

cout << "Enter temperature in Fahrenheit: ";
cin >> fahrenheit;

double celsius = fahrenheitToCelsius(fahrenheit);

cout << "Temperature in Celsius is: " << celsius << endl;

return 0;
}
```

Explanation:

1. Include the necessary header files: `<iostream>` for input/output operations.
2. Create a function `fahrenheitToCelsius` that takes a parameter `fahrenheit` and returns the equivalent temperature in Celsius. The conversion formula is `celsius = (fahrenheit - 32) * 5 / 9`.
3. In the `main` function, declare a variable `fahrenheit` to store the input temperature in Fahrenheit.
4. Prompt the user to enter temperature in Fahrenheit using `cout` and read the input using `cin`.
5. Call the `fahrenheitToCelsius` function, passing `fahrenheit` as the argument, and assign the returned value to a variable `celsius`.
6. Display the converted temperature in Celsius using `cout`.
7. Finally, return 0 to indicate successful program execution.