Wrong answer.working fine in my compiler

import java.util.;
public class Main {
public static void main(String args[]) {
int fmin=0;
int fmax=100;
int fstep=20;
int fcurrent=fmin;
while(fcurrent<=fmax){
int cel=(int)((5.0/9)
(fcurrent-32));
System.out.println(fcurrent +"\t" +cel);
fcurrent=fcurrent+fstep;

    }
}

}

Hi ritu

You need to take the input from the user for the values fmin, fmax, fsteps and not hard code it.

Hii Ritu,
As you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.

Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.