Take the following as input.
Minimum Fahrenheit value
Maximum Fahrenheit value
Step
Print as output the Celsius conversions. Use the formula C = (5/9)(F – 32) E.g. for an input of 0, 100 and 20 the output is
0 17
20 6
40 4
60 15
80 26
100 37
My code is
#include
using namespace std;
int main()
{
int minf,maxf,step,f;
float c;
cout<<“enter the details of farenheit value”<<endl;
cin>>minf,maxf,step;
c=(f-32)*(5/9);
for(f=minf;f<=maxf;f=f+step)
{
cout<<f<<endl;
cout<<c<<endl;
}
return 0;
}
why it is not running?