Skip to content
Quiz · Loops · lesson 5 of 8

Quiz — what continue skips

What does the program print?

C++
#include <iostream>

int main() {
    for (int i = 1; i <= 5; ++i) {
        if (i % 2 == 0) {
            continue;
        }
        std::cout << i;
    }
}

Subscribe to take the course

The course is free. Sign in with Telegram and subscribe to the channel to open every lesson.

Sign in another way