The question is not at all understandable . Please explain what we have to do in this question by some example . I am not asking for solution just asking you to explain the questiom
Odd and even back in delhi
what is not understandable in this question?
this is straight forward problem
for each carNo you have to check this condition
if the sum of digits which are even is divisible by 4 or sum of digits which are odd in that number is divisible by 3.
first calculate sum of even digit(evenSum) and sum of odd digits(oddSum)
now check
if(evenSum%4==0 || oddSum%3==0)
cout<<"Yes";
else
cout<<"NO";