Convert the following from C++ to C: #include <iostream> #include <iomanip> usin
ID: 3565934 • Letter: C
Question
Convert the following from C++ to C:
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
cout<<setiosflags(ios::fixed | ios::showpoint | ios::right)<<setprecision(3);
int farh, f1, f2;
float cel;
cout << "Enter starting fahrenheit: ";
cin >> f1;
cout << "Enter ending fahrenheit: ";
cin >> f2;
cout << "Fahrenheit Celsius" << endl;
for ( int i = f1; i <= f2; i++ )
{
farh = ((9.0 / 5.0) * i) + 32;
cel = (5.0 / 9.0) * (i - 32.0);
cout<< noshowpos << setfill(' ')<<setw(6)<<farh;
cout<< showpos << setfill('0')<<setw(13)<<cel<<endl;
}
system("PAUSE");
return 0;
}