(1) What code should I put in case 'e':?
(2) Should I still put default case?
do
{
Console.Write(" Enter a selection from the following
list:\n" +
"a. Display ............... ....\n" +
"b. Display ............... .....\n." +
"c. Display ............... .\n.." +
"e. Exit this program\n");
ch = Char.Parse(Cons ole.ReadLine()) ;
Console.WriteLi ne("");
switch (ch)
{
case 'e':
????????
} // end switch
} while ( ch== etc.)
(2) Should I still put default case?
do
{
Console.Write(" Enter a selection from the following
list:\n" +
"a. Display ............... ....\n" +
"b. Display ............... .....\n." +
"c. Display ............... .\n.." +
"e. Exit this program\n");
ch = Char.Parse(Cons ole.ReadLine()) ;
Console.WriteLi ne("");
switch (ch)
{
case 'e':
????????
} // end switch
} while ( ch== etc.)
Comment