Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Challenges

Post History

66%
+2 −0
Challenges 1, 2, Fizz, 4, Buzz!

Canvas, 24 bytes zz+¹┘%!* ‾U{ŗ3Fi⁸5Bu⁸+nO Try it here! Explanation (ASCII-fied for better monospacing): zz+¹┘%!* Helper function ⁸; Expects stack to be [modulo, string] zz+ append "z...

posted 3y ago by dzaima‭

Answer
#1: Initial revision by user avatar dzaima‭ · 2020-11-21T00:14:43Z (over 3 years ago)
# [Canvas](https://github.com/dzaima/Canvas), 24 [bytes](https://github.com/dzaima/Canvas/blob/master/files/chartable.md)
    zz+¹┘%!*
    ‾U{ŗ3Fi⁸5Bu⁸+nO

[Try it here!](https://dzaima.github.io/Canvas/?u=enoldUZGMEIlQjkldTI1MTgldUZGMDUldUZGMDEldUZGMEElMEEldTIwM0VVJXVGRjVCJXUwMTU3JXVGRjEzRmkldTIwNzgldUZGMTVCdSV1MjA3OCV1RkYwQiV1RkY0RSV1RkYyRg__,v=8)

Explanation (ASCII-fied for better monospacing):

```text
zz+¹┘%!*  Helper function ⁸; Expects stack to be [modulo, string]
zz+       append "zz" to the string
   ¹      push the current loop index
    ┘     retrieve the modulo
     %    calculate the modulo
      !   negate (i.e. is-divisible)
       *  repeat the string vertically that many times

‾U{ŗ3Fi⁸5Bu⁸+nO  Main program
‾U{              Repeat 100 times, pushing index & writing it to ¹
   ŗ             stringify the pushed index
    3Fi⁸         invoke ⁸ on [3; "Fi"]
        5Bu⁸     invoke ⁸ on [5; "Bu"]
            +    join the two results
             n   overlap that over the index; this works as the maximum index, 100, is less than 4 characters
              O  output that
```