Answer:
Check the explanation
Step-by-step explanation:
#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
double temp1,temp3,inc,cel;
int i=1;
while(i==1)
{
i=0;
cin>>temp1>>temp3>>inc;
if(temp3<temp1||inc<=0)
{
i=1;
cout<<"Starting temperature must be <= ending temperature and increment must be >0.0\\";
}
}
cout<<endl;
cout<<setw(18)<<"Fahrenheit"<<setw(18)<<"Celsius";
while(temp1<=temp3)
{
cel=(temp1-32)/1.8;
cout<<endl;
cout<<fixed<<setprecision(4)<<setw(18)<<temp1<<setw(18)<<cel;
temp1+=inc;
}
}