Sobes.tech
Junior — Senior

What will the program with the switch operator output

livecode

Task condition

It is necessary to determine which text will appear in the console after executing the following program.

#include <iostream>
using namespace std;

int main() {
    int num = 3;
    switch(num) {
        case 1: cout << 1;
        case 2: break;
        case 3: cout << 3;
        case 4: cout << 4; break;
        default: cout << 5;
    }
    return 0;
}