In the original FizzBuzz Challenge, I created a program that for each number from 1 to 100, if it was not not divisible by 3 or 5, printed the number. If it was divisible by 3, the program printed “fizz”. If it’ was divisible by 5, the program printed “buzz”. And finally, if it was divisible by both 3 and 5, the program printed “fizz buzz”.
For the FizzBuzz Refactor Challenge, I created a program that did those same things, but utilized functions and prompted the user to enter a max value for the program. Click the red button below to begin. Then, click "New Game" to start fresh.
FIZZBUZZ REFACTOR OUTPUT