Delhi odd even problem

#include
using namespace std;
int main() {
int n;
cin >> n;
int j;
for (int i=1;i<=n;i++){
long int no;
int sum=0;
cin >> no;
while(no>0){
j= no%10;
sum = sum +j;
no = no/10;
}
if (sum%2==0){
if(sum%4==0 ){
cout << “Yes”<< endl;
}
else {
cout<< “No”<< endl;
}
}
else{
if(sum%3==0){
cout << “Yes”<< endl;
}else{
cout << “No” << endl;
}
}

}return 0;
}

Hi @rawatsaab4
In this ques you are supposed to calculate sum of odd digits and sum of even digits. You are calculating sum of all the digits. Then you have to consider 2 case either sum of odd digit is divisible by 3 or sum of even digits are divisible by 4 then only car will be allowed on sunday.