Delhis odd even

import java.util.*;
import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int t=sc.nextInt();
while(t>0)
{
int n=sc.nextInt();
int rem=0;
int evensum=0;
int oddsum=0;
while(n!=0) {
rem=n%10;
n=n/10;
System.out.println(rem);

 if(rem%2==0) {
	 
	  evensum=evensum+rem;
  
 }
 else
 {
	  oddsum=oddsum+rem; 	
  
 }
  
 	 }
	  if(oddsum%3==0||evensum%4==0)
	  {
		  System.out.println("yes");
	  }
	  else{
		System.out.println("No");
	  }
	  t--;

}
}
}
sir eventhough logic is correct,still testcase went wrong.plz tell where i done mistake

@karthik1989photos,
Don’t print the remainder and instead of “yes”, you should print “Yes”.

https://ide.codingblocks.com/s/258225 corrected code for the same.

import java.util.*;
import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int t=sc.nextInt();
while(t>0)
{
int n=sc.nextInt();
int rem=0;
int evensum=0;
int oddsum=0;
while(n!=0) {
rem=n%10;
n=n/10;

 if(rem%2==0) {
	 
	  evensum=evensum+rem;
  
 }
 else
 {
	  oddsum=oddsum+rem; 	
  
 }
  
 	 }
	  if(oddsum%3==0||evensum%4==0)
	  {
		  System.out.println("yes");
	  }
	  else{
		System.out.println("No");
	  }
	  t--;

}
}
}
sir code is compiling and printing correct output but on submitting the code testcases are not satisfying

@karthik1989photos,
print “Yes” instead of “yes”

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.