Ciel a-b problem whats wrong with answer

import java.util.*;
class arth{
int a,b,diff,temp;
void input(){
Scanner sc =new Scanner(System.in);
System.out.println(“Enter no. A”);
a=sc.nextInt();
System.out.println(“Enter no. B”);
b=sc.nextInt();
}
void calc(){
if(a<10001){
if(b>0){
if(a>b){
diff=a-b;
temp=diff%10;
if(temp<9){diff++;}
else {diff–;}
System.out.println("the diffrence is "+diff);
}
}}}
public static void main(String a[])
{
arth x=new arth();
x.input();
x.calc();
}
}

Dont print superfluous things like “Enter number A” etc. Its a machine checking if your output is an exact match or not, so it will flag your code with a WA in this case.

still wrong answer
here’s problem

You are just printing back the input. Please run your code against sample I/O in codechef IDE.

//