Delhi's Odd Even Problem

If the first if statement comes out to be true then all the other cases gives me the β€œYes” solution. but the opposite is not true

Initialize the odd_sum and even_sum within the while loop as they must be re initialized for each test case.

1 Like

Thanks! It works fine now.