name = "fizzbuzz" category = "algorithm" mode = "solve" description = """ Read a single integer N from stdin. Print numbers from 1 to N, one per line. For multiples of 3, print "Fizz" instead of the number. For multiples of 5, print "Buzz" instead of the number. For multiples of both 3 and 5, print "FizzBuzz" instead of the number. """ [[test_cases]] stdin = "15" expected_stdout = """1 2 Fizz 4 Buzz Fizz 7 8 Fizz Buzz 11 Fizz 13 14 FizzBuzz""" [[test_cases]] stdin = "5" expected_stdout = """1 2 Fizz 4 Buzz""" [[test_cases]] stdin = "1" expected_stdout = "1"