Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1As{3%!"Fizz"~5%!"Buzz">N=?~N<}\
- 1 | Pushes 1 to the stack.
- A | Pushes 10 to the stack.
- s | Pops 10 off and pushes the square of it (100)
- {
- 3% | Pops off the top value of the stack (for-loop counter) and pushes modulo 3
- !"Fizz" | Pushes "Fizz" if result is 0 (falsy)
- ~ | Pushes the value of the register (for-loop counter)
- 5% | Modulo 5
- !"Buzz" | Pushes "Buzz" if falsy
- > | Moves the wheel pointer over by one (we are now in the string/regex wheel)
- N= | Compares top value to a newline
- ?~ | If truthy, push the value of the register
- N | Push a newline
- < | Moves the wheel pointer back by one (we are now in the math wheel)
- }\ | Loops between 1-100, pushing the for-loop counter to the stack and to the register each iteration
Advertisement
Add Comment
Please, Sign In to add comment