Question
Predict output of following code segment:
int i;
for(i=1; i<=5; i++) {
if (i % 2 == 0)
continue;
cout << i; }
Predict output of following code segment:
int i;
for(i=1; i<=5; i++) {
if (i % 2 == 0)
continue;
cout << i; }
Sign in to write or photograph your own answer before checking the model answer. It is saved privately to your account and free to do.
Flashcards, MCQs and other questions linked to this one appear here as they are added.
Topics and outcomes this question is testing.