Question related to break statements
Why we use continue statement in csharp
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Posted Sep 20, 2011, 8:46 PM EDT
Output :
9 10
VulpesRank #55 · 29.2K reputationPosted Sep 21, 2011, 12:20 AM EDT
Sometimes you may want to do this rather than carry on with the current iteration.
Whilst it's always possible to program without it, when used judiciously, it can make your program easier to understand by reducing the amount of code which needs to be nested in 'if' or 'switch' statements.