Odd and even back in delhi

Wrong test cases. As per the question, the condition to get true value is 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. But, in the test case, for values 33336 and 00001, it prints Yes. 33336 sums upto 18, not divisble by 4. 00001, not divisible by 3. Kindly, correct the testcase.

Probably you didn’t understand the question correctly. We need to sum up the even digits of a number(say e) and sum up odd digits separately(say o). Now if either e is divisible by 4 or o is divisible by 3, print Yes else No.

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.