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
Delhi's Odd Even Problem
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.