Created
October 27, 2016 20:37
-
-
Save jamby77/0f3fe4d300e567a479c9c9cb21305b3b to your computer and use it in GitHub Desktop.
loop with 'modulo'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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