FizzBuzz with Custom Range

Ask the user for a starting and ending number, and print FizzBuzz for that range:
Print “Fizz” if the number is divisible by 3
Print “Buzz” if divisible by 5
Print “FizzBuzz” if divisible by both
Otherwise print the number

EXT:
Allow the user to set custom Fizz and Buzz divisors.

Scroll to Top