Incorrect answer to the question even after odd

I’ve tried multiple number of times but I’ve failed to understand why this code is giving me incorrect answer.

Here is the link to my code -

Hello @Vishesh-Chaitanya-1475805525886480 put your lower part of even after odd inside else block:


i have corrected your code:
Happy Learning!!

Can you mark where all you made the changes ??

check this:

nevermid , i got it .

Thankyou very much !!

@Vishesh-Chaitanya-1475805525886480 you can mark this doubt as resolved.