code seems to be correct but is tested as wrong for test case can i get help regarding this
import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner scan =new Scanner(System.in);
int n=scan.nextInt();
for(int i=1;i<=n;i++)
{
int x=0;
int carno=scan.nextInt();
while(carno%10!=0&&carno>=0&&carno<=1000000000)
{
x=x+carno%10;
carno=carno/10;
}
if(x%2==0&&x%4==0)
{
System.out.println("Yes");
}
else if(x%2!=0&&x%3==0)
{
System.out.println("Yes");
}
else
{
System.out.println("No");
}
}
}
}