Follow the logic flow line by line, you are asking for the user to enter the price for the item after they make the choice between 1,2, or 3 regardless of which choice they made.
The do...while loop involving the switch statement doesn't come into play until after the user has entered a price. So unless they enter a price of 3, this will never exit.
Reputation Points: 14
Solved Threads: 3
Junior Poster in Training
Offline 65 posts
since Apr 2008