Not able to solve this ,here is my code

#include
using namespace std;
int main() {
int num;
cin>>num;
int sum_even=0;
int sum_odd=0;

while(num>0){
	if(num%2==0){
		sum_even = sum_even + num;
	}else{
		sum_odd = sum_odd + num;
	}
	if(sum_even%4==0 || sum_odd%3==0){
		cout<<"YES"<<endl;
	}else{
		cout<<"NO"<<endl;
	}
}
return 0;

}

hello @anuragsen9617
u have misunderstood the statements.

u need to compute sum of even digits and sum of odd digits seprately .
and after that if sum of even digits is divisbile by 4
or if sum of odd digits is divisible by 3 then u need to print yes otherwise no.
refer this->

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.