import java.util.*;
class atm
{
public static void main(String args[])
{
Scanner sc = new Scanner(System.in);
System.out.println(“enter amount to be withdrawn and total amount”);
double wdrw=sc.nextDouble();
double amt=sc.nextDouble();
double rem;
if (wdrw%5==0)
{
rem=amt-wdrw-0.5;
System.out.print(rem);
}
else
System.out.print(amt);
}
}
this is my program and i m not getting proper result