I GOT CORRECT OUTPUT BUT TEST CASE FAILED.
int n,no,last;
cin>>n;
for(int j =0; j<n;j++){
int sum=0;
cin>>no;
for(int i=0;no!=0;i++){
last = no%10;
sum =sum + last;
no = no/10;
}
if((sum%2==0 && sum%4==0 ) || (sum%2!=0 && sum%3==0)){
cout<<"yes"<<endl;
}
else{
cout<<"no";
}
}
PLEASE HELP!