Please send questions to
st10@humboldt.edu .
Consider the following fragment ---
int value;
cout << "enter an integer: ";
cin >> value;
switch(value):
{
case 1:
cout << "one";
break;
case 2:
cout << "two";
case 3:
cout << "three";
break;
default:
cout << "four";
}
cout << "done" << endl;
a) If, when this fragment is run, the
user types 3, what will be printed to
the screen after this?
b) The user runs this fragment a
second time. This time, the user types
2. What will be printed to the screen
after this?
c) The user runs this fragment a third
time. This time, the user types
56. What will be printed to the screen
after this?