brainfuck/examples/sierpinski.bf
2024-09-14 15:10:05 +03:00

13 lines
309 B
Brainfuck

[sierpinski.b -- display Sierpinski triangle
(c) 2016 Daniel B. Cristofani
http://brainfuck.org/]
++++++++[>+>++++<<-]>++>>+<[-[>>+<<-]+>>]>+[
-<<<[
->[+[-]+>++>>>-<<]<[<]>>++++++[<<+++++>>-]+<<++.[-]<<
]>.>+[>>]>+
]
[Shows an ASCII representation of the Sierpinski triangle
(iteration 5).]