Fahrenheit to celsius

#include
using namespace std;
int main() {
int f = 0 ;
int c;

while (f<300){
    int c = (5*(f-32))/9;
    cout<<f<<" "<<c<<endl;
    f = f + 20;

}
return 0;

}

This is my code…this is code is working in online ide but when same code when I’m trying to execute in contest …it’s failing

@Legendankit
Hello Ankit,
can u please save your code on coding blocks ide and share the link here

@Legendankit
Hello Ankith,
you need to take following input from user.

a)Minimum Fahrenheit value
b)Maximum Fahrenheit value
c)Step
In ur code u are not taking input from user.please modify that

I did not get can let me know again…

@Legendankit see the question is saying ,that initially you will be given three numbers
a)Minimum Fahrenheit value
b)Maximum Fahrenheit value
c)Step
now you need to start from Minimum Fahrenheit value and go to Maximum Fahrenheit value by taking step (each time) and convert the fahrenheit to celcius.

for example
let say
Minimum Fahrenheit value - 3
Maximum Fahrenheit value - 12
step-4
so we will start from 3 convert it to celcius than move 4 steps ahead i.e 7
convert 7 to celcius than move 4 steps ahead i.e 11
convert 11 to celcius than move 4 steps ahead i.e 15
we wiil stop here because 15 > Maximum Fahrenheit value