Code360 powered by Coding Ninjas X Naukri.com. Code360 powered by Coding Ninjas X Naukri.com

Find the output VI

Easy
0/10

Problem statement

What is the output of the following C++ program?

#include <iostream>

using namespace std;

int main() {
    int input = 2;
    switch (input) {
    case 1:
        cout << "One ";
    case 2:
        cout << "Two ";
    case 3:
        cout << "Three ";
    default:
        cout << "Default ";
        break;
    }

    return 0;
}
Find the output VI
Options: Pick one correct answer from below