Skip to content

Instantly share code, notes, and snippets.

@jstitch
Created July 23, 2014 04:08
Show Gist options
  • Save jstitch/2bbf10bfaae0d7aceba1 to your computer and use it in GitHub Desktop.
Save jstitch/2bbf10bfaae0d7aceba1 to your computer and use it in GitHub Desktop.
public class BreakContinue {
public static void main(String [] args) {
Integer cuenta = 100;
for (Integer i=0; i<cuenta; i++) {
if (i % 13 == 0 && i > 20) {
System.out.println("saliendo prematuramente...");
break;
}
System.out.println("Numero: " + i.toString());
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment