In this also i am facing error in terms of scanner what should i do?

Scanner scn = new Scanner(System.in);
	int min = scn.nextInt();
	int max = scn.nextInt();
	int step = scn.nextInt();
	int tf=min;
	while(tf<=max){
		int tc = (int)((5.0/9)*(tf-32));
		System.out.println(tf+"\t"+tc);
		tf= tf+ step;
		}

hey @rishabh.chhabra10
logic is correct :
please share screenshot , What error have you got

Exception in thread β€œmain” java.util.NoSuchElementException at java.util.Scanner.throwFor(Scanner.java:862) at java.util.Scanner.next(Scanner.java:1485) at java.util.Scanner.nextInt(Scanner.java:2117) at java.util.Scanner.nextInt(Scanner.java:2076) at Main.main(Main.java:5)

please give custom input