Skip to content

Instantly share code, notes, and snippets.

@vinaysshenoy
Created March 18, 2016 10:54
Show Gist options
  • Save vinaysshenoy/bf041146d96268180ea7 to your computer and use it in GitHub Desktop.
Save vinaysshenoy/bf041146d96268180ea7 to your computer and use it in GitHub Desktop.
Break nested loops
mainLoop:
while (goal <= 100) {
for (int i = 0; i < goal; i++) {
if (points > 50) {
break mainLoop;
}
points += i;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment