Re:Show HN: The Fizz Buzz T-Shirt.
by smarx on Sunday August 26, 2012 @04:17AM
(#4434640)
I like the idea of a T-shirt with a FizzBuzz solution on it.
That said, the code on this shirt isn't actually a correct solution to FizzBuzz.
Even ignoring the extra lines of output ("##is divisible by X," with a missing space), on numbers like 15, this program prints "fizz" and then "buzz" and then "FizzBuzz" (instead of just "FizzBuzz.")
Unless there's some intentional irony I'm missing, I would suggest fixing the code.
That said, the code on this shirt isn't actually a correct solution to FizzBuzz.
Even ignoring the extra lines of output ("##is divisible by X," with a missing space), on numbers like 15, this program prints "fizz" and then "buzz" and then "FizzBuzz" (instead of just "FizzBuzz.")
Unless there's some intentional irony I'm missing, I would suggest fixing the code.