Problem in Challenge: Delhi's Odd Even


What is the error in my code

hello @shashwat6479

u have misunderstood the problem.
image

pls read this line carefully.

also
image

here it should be >

can this question be solved without arrays?

yeah,u dont have to use any array for this problem

i am not getting the logic to solve this. pls help.

once check this code it will clear all ur doubts.

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.