Sir what is the problem in the code?
https://ide.codingblocks.com/s/50019
Delhi' odd even
Hey, your logic is not correct as first you have written an if check if(sum%2==0) and inside that you are checking if(sum%3==0), its not necessary if a no. is divisible by 3 that should also be divisible by 2 also. So update your checks asif(sum%3==0 || sum%4 == 0)
Hey Rishab, read the problem carefully you have to check if the sum of digits which are even is divisible by 4 or sum of digits which are odd in that number is divisible by 3. You haven’t written code for this logic. Think a lil bit more on your approach.