Why the testcase is not passing?
Delhi's odd even
The approach you are using in your code is not correct as, you need to maintain two sum values as,
int sume=0,sumo=0;
while(Car_no>0)
{
rem=Car_no%10;
if(rem%2==0) sume=sume+rem;
else sumo=sumo+rem;
Car_no=Car_no/10;
}
And based on that you will print the result as
if(sume%4==0 || sumo%3==0)
{
cout<<“Yes”;
}
else if(sume%4!=0 && sumo%3!=0)
{
cout<<“No”;
}
Try to use this approach only…