Delhi's_odd_even-test_case issue

Hi,
Here is the link to my code:


Please see it, test case not executed

@Harshit199823 hey harshit your logic is not right
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;
}

Hey! I still can’t get it what’ wrong with my code;
And the example you did, you split the number in 2 parts , we won’t have to do that

@Harshit199823 hey harshit sorry for the late response we have to store even digits and odd digits in the separate variable so made the changes your code will pass the evaluation

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.