FizzBuzz (Classics)

Print numbers 1 to n, but Fizz for multiples of 3, Buzz for multiples of 5 and FizzBuzz for both.

Input: One integer n.

Output: n lines.

Difficulty: Easy. Write your answer in the browser editor, run the examples, then submit it against hidden tests. Python and JavaScript are free; other languages are part of licode Club.

Hint

  • Check 15 first.