A
Amanda
If I do this, i get complaints saying that || cannot be used for char
and bool. Any help?
// options will be a,b,c,or e
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\n");
ch = Char.Parse(Console.ReadLine());
Console.WriteLine("");
switch (ch)
{
} // end switch
} while ( ch== 'a' || ch = 'A' || ch == 'b' || ch = 'B' || ch
== 'c' || ch = 'C' || ch == 'e' || ch = 'E');
} // end main
and bool. Any help?
// options will be a,b,c,or e
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\n");
ch = Char.Parse(Console.ReadLine());
Console.WriteLine("");
switch (ch)
{
} // end switch
} while ( ch== 'a' || ch = 'A' || ch == 'b' || ch = 'B' || ch
== 'c' || ch = 'C' || ch == 'e' || ch = 'E');
} // end main
