You are viewing a single comment's thread. Return to all comments →
not clicking in my head why the else statement works. I thought the else block executes if the two previous conditions are both false no? I would have thought the cout << a[i+1] would be apart of the other two code blocks.