Skip to the task
Layout
Back to classic view

You are looking at lesson 3. Your place is still Practice test 1, task 1: About.

CHECKTask 13 of 22 · step 7: Drills: check yourself

What does this loop print?

Write your answer first, only then open the hint.

for (int i = 1; i <= 10; i += 3) {
    printf("%d ", i);
}
printf("\n");
Stuck?

1 4 7 10. The next would be 13, and 13 <= 10 is false, so the loop ends.