CodeGolf: FizzBuzz
Let's have a round of CodeGolf!
As usual the goal is to write the shortest solution for a specified problem.
Today we have one of the classics: FizzBuzz.
Write a program that prints the numbers from 1 to 100.
But for multiples of three print “Fizz” instead of the number and for the multiples of five print “Buzz”.
For numbers which are multiples of both three and five print “FizzBuzz”
To make output a little more readable (and code - more interesting) let's print only one number or word per line, so correct output should be:
It is produced by this unoptimized script: