ERROR (runtime)

import java.util.Scanner;

public class CELSIUS {

public static void main(String[] args) {
	   Scanner input=new Scanner(System.in);
	int cel,min,step,max;
	 min=input.nextInt();
	 max=input.nextInt();
	 step=input.nextInt();
	 while(min<=max){
	
	double temp;
	double c=0.55;
	temp=c*(min-32);
	cel=(int)temp;
	System.out.println(min+" "+cel);
    min=min+step;
}
}

}

hi @KUNAL.SHARMA5724510

you don’t have to take the approx value of 5/9;

import java.util.*;
import java.util.Scanner;

public class CELSIUS {

public static void main(String[] args) {
Scanner input=new Scanner(System.in);
int cel,min,step,max;
min=input.nextInt();
max=input.nextInt();
step=input.nextInt();
while(min<=max){

double temp;
double c=5.0/9;
temp=c*(min-32);
cel=(int)temp;
System.out.println(min+" "+cel);
min=min+step;

}
}
}

@KUNAL.SHARMA5724510
please mark your doubt as resolved in my doubts section and rate me as well.

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.