Odd even problem doubt

please help me out. the given testcase is working but the its showing wrong answer by the actual testcase.

@ankit152 hey ankit save your code on cb.lk/ide and share the link here

@ankit152 hey ankit I think you are bit confused about problem statement the actual logic of the problem is
For ex if you are given a no.:

982452

then maintain 2 variables evesum=0, oddsum = 0 ;
and they will be:

        9   +   8   +   2   +   4   +   5   +   2

evesum = 8 + 2 + 4 + 2 = 16
oddsum = 9 + 5 = 14
if((evesum%4==0)||(oddsum%3==0)){
cout<<β€œYes”<<endl;
}else{
cout<<β€œNo”<<endl;
}

thank you for the help. i understood where i was making a mistake. thank you :slight_smile: