In the last challenge, you printed 100 lines and changed the numbers every 3 or 5 times. In this challenge, you will be given three integers
b as input which will tell you how many lines to print and when to print Fizz or Buzz.
Write a program that prints the numbers from 1 through
n. But for multiples of
a print “Fizz” instead of the number and for the multiples of
b print “Buzz”. For numbers which are multiples of both
b print “FizzBuzz”.
Note: Print each item space-separated, and each test case on its own line.
Boilerplate code is provided that passes in each input case into 3 variables:
If you want to process the input yourself, it uses the following format:
- The input starts with T, the number of cases.
- T lines follow, which each contains 3 integers in order for