Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

c++ switch statement

//Hope This Works For You!
int x;
cin >> x;

switch(x) {
  case 1:
   cout << "You Entered 1";
   break;
      
 default:
  cout << "You Entered " << x;
}
 
PREVIOUS NEXT
Tagged: #switch #statement
ADD COMMENT
Topic
Name
3+2 =