please help me out. the given testcase is working but the its showing wrong answer by the actual testcase.
Odd even problem doubt
@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 