Answers for "how to use if...else in switch case in c++"

1

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;
}
Posted by: Guest on April-18-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language