How should i approch this problem

/******************************************************************************

Welcome to GDB Online.
GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl,
C#, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog.
Code, Compile, Run and Debug online from anywhere in world.

*******************************************************************************/
#include <stdio.h>

int main()
{
int N,r,s=0,a,b;
scanf("%d",&N);

while(N!=0)
{
    r=N%10;
    s=s+r;
    N=N/10;
}

if(s%2==0)
{
a=s;

}

if(s%2!=0)
{
    b=s;
}

if(a%4==0 || b%3==0)
{
printf(“yes”);
}
else
{
printf(“no”);
}

return 0;

}

hi @abhishekpandeybhu_da87a9e0d2c73079

  1. first there are t test cases

2)second, the question says sum of digits which are even they are div by 4 not all the sum divisible by 4
similar for 3 also

refer here https://ide.codingblocks.com/s/658474

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.