What is wrong with my code here in Delhi Odd even prob?

Scanner scn = new Scanner(System.in);

	int Cars = scn.nextInt();
	int even = 0;
	int odd = 0;

	while (Cars > 0) {
		int N = scn.nextInt();

		while (N > 0) {

			int rem = N % 10;
			int a = rem % 2;

			if (a == 0) {
				even += rem;
			} else {
				odd += rem;
			}
			
			N = N / 10;
		}
		
		if(even % 4 == 0 || odd % 3 == 0 ) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
		
		Cars--;
	}

declare even odd inside cars loop also if the even sum is divisible by 4 or if the odd sum is divisible by 3 print yes
see this:

ooooh I get it. Thank you so much
That is why I was wondering why I always got first value correct and others incorrect…

sure :slight_smile: please mark your doubt as resolved