FizzBuzz: Difference between revisions

Content added Content deleted
m (I do not think this is so unimportant that it should be in parentheses.)
Line 9: Line 9:


But:
But:
:*   for multiples of three,   print   '''Fizz'''     (instead of the number)
:*   for multiples of three,   print   '''Fizz'''     instead of the number;
:*   for multiples of five,   print   '''Buzz'''     (instead of the number)
:*   for multiples of five,   print   '''Buzz'''     instead of the number;
:*   for multiples of both three and five,   print   '''FizzBuzz'''     (instead of the number)
:*   for multiples of both three and five,   print   '''FizzBuzz'''     instead of the number.