able to code according to question but not sure with wrong testcase please help me 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 odd=0;
int even=0;
int carno=scan.nextInt();
while(carno%10!=0||carno/10!=0&&carno>=0&&carno<=1000000000&&n<=1000)
{
x=carno%10;
carno=carno/10;
if(x%2==0)
{
even=even+x;
}
else if(x%2==1)
{
odd=odd+x;
}
}
if(odd%3==0||even%4==0)
{
System.out.println("Yes");
}
else
{
System.out.println("N0");
}
}
}
}