The following program is supposed to convert a temperature in degrees Fahrenheit to degrees Celsius, but it will not produce the correct results. Use only TYPE CASTING to fix the problem and run the program for the test values: (1) 32 F is 0 C; and (2) 212 F is 100 C.
#include<iostream>
using namespace std;
int main() {
int t_in_fah, t_in_cel;
cout << "Enter a temperature in Fahrenheit: ";
cin >> t_in_fah;
t_in_cel = static_cast<int>(5.0/9.0 * (t_in_fah - 32));
cout << "The temperature in Celsius is: " << t_in_cel << endl;
return 0;
}