We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
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.
For Loop
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.