Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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
4+4 =