Hi all,
I am wondering if I can use a case statement to do more.
I'm using a switch to allow menu selection of some variables, but I have only attached a WriteLine to the case.
switch (moneyMM)
{
case 1:
Console.WriteLine("£10.00 Added to total, Add more ? Y or N ");
break;
My question is, can I use this case to add that £10 to a total, while allowing the return Y or N to the menu to add more money??
I'm scouring the internet for clues, so any help would be appreciated.
Regards,
Babayaga
I am wondering if I can use a case statement to do more.
I'm using a switch to allow menu selection of some variables, but I have only attached a WriteLine to the case.
switch (moneyMM)
{
case 1:
Console.WriteLine("£10.00 Added to total, Add more ? Y or N ");
break;
My question is, can I use this case to add that £10 to a total, while allowing the return Y or N to the menu to add more money??
I'm scouring the internet for clues, so any help would be appreciated.
Regards,
Babayaga