Created
September 1, 2015 21:51
-
-
Save lman/a4b1c778e081840bfc89 to your computer and use it in GitHub Desktop.
Revisions
-
lman created this gist
Sep 1, 2015 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ /** * Created by lman on 02/09/15. */ public class Main { public static void main(String[] args) { int n = 100; for (int i=0; i<n; ++i) { if (i % 3 == 0 && i % 5 == 0) { System.out.println("withbus = " + i); } else if (i % 3 == 0) { System.out.println("with = " + i); } else if (i % 5 == 0) { System.out.println("bus = " + i); } } } }