xapn/Java-Programming — Issue #9: FooBarQix from CodeStory
Author: xapn
Created: 2012-02-12 13:14:05+00:00
State: open
Labels: Code Katas

Write a program that displays the numbers between 1 and 100, one number per row. The rules follows:
* If a number is divisible by 3 or contains 3, write "Foo" instead of 3.
* If a number is divisible by 5 or contains 5, write "Bar" instead of 5.
* If a number is divisible by 7 or contains 7, write "Qix" instead of 7.
* One looks for the divisors before the content.

For example:
1
2
FooFoo
4
BarBar
Foo
QixQix
8
Foo
Bar
...

Code Story challenge : http://www.code-story.net/2011/11/16/foobarqix.html