DELHI ODD EVEN CHALLENGE

please explain the question in more detail??
with some more input and output

hi @shashank_sabharwal
for any given number n, some digits are odd some are even. For eg in 134, 1 and 3 are odd and 4 is even. You have to calculate the sum of all the odd digits and sum of all the even digits of the number, and see if this sum satisfies the conditions given in question or not.

but in the given input example 12345 its answer is yes car will run ??? how itspossible,

@shashank_sabharwal
sum of odd numbers: 1+3+5 = 9
9 is divisible by 3
hence the car can run

conditions are sum of all even no will be divisible by 4 and odd no will be divisible by 3 , but in example 12345 , here even nos are 2+4 =6(sum) which is not divisible by 4 , so why in output shows yes ???/

@shashank_sabharwal there is OR, not AND, please read the question carefully.

@shashank_sabharwal

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

oh, ok got it sorry my bad , actually according to the question if any one condition satisfy the car will run on sunday, thank you :slight_smile:

@shashank_sabharwal yes that’s right, at least 1 condition is needed, not both.
Dont forget to mark your doubt as resolved!