I am still getting wrong answer in this , but working on eclipse

import java.util.Scanner;

public class oddevenrule {

public static void main(String[] args) {
	// TODO Auto-generated method stub

Scanner scn = new Scanner(System.in);
int a = scn.nextInt();
for(int i=1;i<=a;i++) {
int n = scn.nextInt();
int ch = n;
int sum =0;
int dum =0;
while(n!=0) {
int rem = n %10;
if(rem%2==0) {
sum=sum +rem;
}
else {
dum=dum+rem;
}
n=n/10;
}

if(sum%4==0) {
	System.out.println("yes");
}
else if(dum%3==0) {
	System.out.println("yes");
}
else {
	System.out.println("no");
}

}
}
}

@rishabh.chhabra10
you have to print Yes and No

it is printing yes and no in the eclipse and even working with custom output.

@rishabh.chhabra10
your code is correct .you have to print yes with capital y and no with capital n

System.out.println(“Yes”);
System.out.println(“No”);