You are viewing a single comment's thread. Return to all comments →
Very slight improvement to your if-then-else:
if (i > 9) cout << a[i % 2] << endl; else cout << a[i + 1] << endl;
Seems like cookies are disabled on this browser, please enable them to open this website
For Loop
You are viewing a single comment's thread. Return to all comments →
Very slight improvement to your if-then-else: