Use a template and run examples

Check Compiler:

Project and default codes:

Replace the existing code

#include <iostream> 
using namespace std; 
 void simple_switch(int);
int main() 
{ 
  int x; 
 
  for(x=0; x != 911; ) { 
    cout << " \n Enter a number: 1 to 6 or 911 to quit  :  "; 
    cin >> x; 
    simple_switch(x);;
  } 
 
  return 0; 
}
void simple_switch(int n1)
{

	switch(n1)
	{
	case 1:	cout<< " we got " << n1;	break;
	case 2:	 cout<< " we got " << n1;	  break;
	case 3:	cout<< " we got " << n1;	break;
	case 4:	 cout<< " we got " << n1;	  break;
	case 5:	cout<< " we got " << n1;	break;
	case 6:	 cout<< " we got " << n1;	  break;
	default:
		cout<<" default:"; 
	}

}