Skip to content

Instantly share code, notes, and snippets.

@jamby77
Created October 27, 2016 20:37
Show Gist options
  • Save jamby77/0f3fe4d300e567a479c9c9cb21305b3b to your computer and use it in GitHub Desktop.
Save jamby77/0f3fe4d300e567a479c9c9cb21305b3b to your computer and use it in GitHub Desktop.
loop with 'modulo'
public static void main(String[] args) {
int noOfRows = 1234;
for (int i = 0; i < noOfRows; i++) {
if (i > 0 && i % 18 == 0) {
System.out.println(1);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment