While Loop in C# with Switch Statement
问题 I am trying to loop the switch condition if the choice is out of range. But i am not getting the desired output. So if while going through the switch condition the user does not input 1-3 as input, i want it to go to default condition which should trigger the error statement and then keep looping Console.WriteLine("Which book would you like to check out?"); Console.WriteLine("select 1 for book 1, 2 for book 2, and 3 for book 3"); int choice=Convert.ToInt32(Console.ReadLine()); bool loopBreak