Problem HS08TEST
pls some one help me…
what is the wrong in this code
import java.util.;
import java.lang.;
import java.io.*;
class test{
public static void main(String args []) throws java.lang.Exception{
try{
Scanner input = new Scanner(System.in);
int x = input.nextInt();
int y = input.nextInt();
if(x>=0 && x<=2000 && y>=0 && y<=2000) {
if(x>=y) System.out.println(y);
else {
if(x%5==0) {
System.out.print(y-x-0.5);
}
else {
System.out.print(y);
}
}
}
}catch(Exception e){
return;
}
}
}