Odd and even back in delhi

can you send me the the code of it with explanations

hi @agarwaldaksh360_2bae042448e62c08,
u need to find the sum of even digits in the no (say SUM1) and sum of odd digits in the no (say SUM2)
then if SUM1 is div by 4 or SUM2 is div by 3 you can print yes

eg : 1235
SUM1 = 2; --> not div by 4 (failed)
SUM2 = 1 + 3 + 5 --> 9 --> div by 3 (passed)

any one passes print yes

u can refer the the code if having difficulties in implementation https://ide.codingblocks.com/s/657615

what is the meaning of line “typedef long long ll;”

Here I’m defining long long as ll, so that everytime I’ll use ll instead of long long

1 Like

so by using “typedef” can we define anything as anything?

Yes @agarwaldaksh360_2bae042448e62c08

1 Like

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.

can you pls resend the code as it is not displaying on my screen

@agarwaldaksh360_2bae042448e62c08 https://ide.codingblocks.com/s/657615

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.

This post was flagged by the community and is temporarily hidden.