Delhi's Odd Even

Sir can you please tell me what’s wrong with my code, and provide me a better solution.
#include
using namespace std;
int main() {int n,rem;
long long int num,sum_odd=0,sum_even=0;
while(n>0)
{sum_odd=0, sum_even=0;
while(num>0)
{rem=num%10;
if(rem%2==0)
sum_even+=rem;
else
sum_odd+=rem;
num=num/10;
}
if(sum_even%4==0 or sum_odd%3==0)
cout<<“Yes”;
else
cout<<“No”;
n=n-1;
}
return 0;
}

Hello @yash_aryan please share your code by saving it on Ide.codingblocks.com


Here’s the code

@yash_aryan here is the corrected code:


Happy Learning!!

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.