RosettaCodeData/Task/Sierpinski-triangle/00-TASK.txt
2023-07-01 13:44:08 -04:00

31 lines
866 B
Text

;Task
Produce an ASCII representation of a [[wp:Sierpinski triangle|Sierpinski triangle]] of order   '''N'''.
;Example
The Sierpinski triangle of order   '''4'''   should look like this:
<pre>
*
* *
* *
* * * *
* *
* * * *
* * * *
* * * * * * * *
* *
* * * *
* * * *
* * * * * * * *
* * * *
* * * * * * * *
* * * * * * * *
* * * * * * * * * * * * * * * *
</pre>
;Related tasks
* [[Sierpinski triangle/Graphical]] for graphics images of this pattern.
* [[Sierpinski carpet]]
<br><br>