Last active
August 29, 2015 14:01
-
-
Save koduki/127ff4b858d89474bc71 to your computer and use it in GitHub Desktop.
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
/** | |
* Ancient Style. | |
*/ | |
public static void useWile() { | |
int i = 1; | |
while (i <= 100) { | |
if (i % 15 == 0) { | |
System.out.println("FizzBuzz"); | |
} else if (i % 3 == 0) { | |
System.out.println("Fizz"); | |
} else if (i % 5 == 0) { | |
System.out.println("Buzz"); | |
} else { | |
System.out.println(i); | |
} | |
i += 1; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment