How do you end a while loop in a switch case?

Use the continue statement to finish each case label where you want the loop to continue and use the break statement to finish case labels that should terminate the loop. Of course this solution only works if there is no additional code to execute after the switch statement.

Sizin İçin Seçtik  Osmanlı Yatırım ücretli mi?

Leave a Reply

Your email address will not be published. Required fields are marked *