13 lines
309 B
Brainfuck
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).]
|