Conversion frahrenheit to celsius what is the probelm in the code , error occuring

{
int minf,maxf,step;
cout<<“enter minimum fahrenheit value”;
cin>>minf;
cout<<“enter maximum fahrenheit value”;
cin>>maxf;
cout<<“enter step”;
cin>>step;
float c;
for(int i=minf;i<=maxf;i=i+step)
{
c=(5*(i-32))/9;
cout<<i;
cout<<"-";
cout<<c<<endl;

}

hello @jhaisha0003

dont print extra english statements.
check output format and print only in that format

i have removed extra english statement and i am getting the correct output format that is given but when i
run in challenge c++ run and compile so error is occuring

share ur code by saving it here->https://ide.codingblocks.com/

i am unable to save my code
my code is
int main()

{

int minf,maxf,step;

cin>>minf>>maxf>>step;

float c;

for(int i=minf;i<=maxf;i=i+step)

{

    c=((i-32)*5)/9;

    cout<<i<<"-"<<c<<endl;

}

return 0;

}

can you tell how can i use it for negative integers

@jhaisha0003

pls check ur updated code here->

same code will work for negative integers as well.

If this code is correct for negative integer then why in challenge it is written you have not used it for negative integer i am unable to understand what is the correction in this code

thats hardcoded string(u will see similar msg in almost all challenges) , ignore that

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.