/DirtyFizzBuzz

A FizzBuzzOink-Implementation in the for-loop-header.

Primary LanguageJavaMIT LicenseMIT

DirtyFizzBuzz

A FizzBuzzOink-Implementation only in the for-loop-header in Java

This was a quick exercise to test the possibilities and was not meant as a serious solution. ;)

Rules

List the integers from 1 to 100. But for every multiple of 3 write Fizz, for multiples of 5 Buzz and Oink for multiples of 7.
FizzBuzz on Wikipedia

Example

1
2
Fizz
4
Buzz
Fizz
Oink
8
Fizz
Buzz
11
...