-
Notifications
You must be signed in to change notification settings - Fork 0
FizzBuzz breakdown
Giorgio Garofalo edited this page Jan 29, 2024
·
8 revisions
This sample prints the first 30 cases of FizzBuzz: for each number in range, the output is:
- Fizz if it is divisible by 3;
- Buzz if it is divisible by 5;
- FizzBuzz if it is divisible by both 3 and 5;
- the number itself otherwise.
The final source was automatically generated via the recolorize
, colorswap
and compact
commands. (?)
This is what it would look like without the first two commands:
Still a bit of a mess, right? Let's also run decompact
:
Step-by-step explanation: