[ create a new paste ] login | about

Link: http://codepad.org/w9WOcXuh    [ raw code | output | fork ]

C++, pasted on Aug 4:
1
2
3
4
5
6
7
8
9
10
11
12
using namespace std;

int main()
{
    int x = 2;
    switch(x){
        case 1:cout<<"One";
        case 0:cout<<"Zero";
        case 2:cout<<"Hello World";
    }
    return 0;
}


Output:
1
Hello World


Create a new paste based on this one


Comments: