How to resolve the algorithm Sierpinski triangle step by step in the Unlambda programming language
Published on 12 May 2024 09:40 PM
How to resolve the algorithm Sierpinski triangle step by step in the Unlambda programming language
Table of Contents
Problem Statement
Produce an ASCII representation of a Sierpinski triangle of order N.
The Sierpinski triangle of order 4 should look like this:
Let's start with the solution:
Step by Step solution about How to resolve the algorithm Sierpinski triangle step by step in the Unlambda programming language
Source code in the unlambda programming language
```ci``s``s`ks``s`k`s``s`kc``s``s``si`kr`k. `k.*k
`k``s``s``s``s`s`k`s``s`ksk`k``s``si`kk`k``s`kkk
`k``s`k`s``si`kk``s`kk``s``s``s``si`kk`k`s`k`s``s`ksk`k`s`k`s`k`si``si`k`ki
`k``s`k`s``si`k`ki``s`kk``s``s``s``si`kk`k`s`k`s`k`si`k`s`k`s``s`ksk``si`k`ki
`k`ki``s`k`s`k`si``s`kkk
You may also check:How to resolve the algorithm Time a function step by step in the Insitux programming language
You may also check:How to resolve the algorithm Sieve of Eratosthenes step by step in the Vala programming language
You may also check:How to resolve the algorithm CUSIP step by step in the PHP programming language
You may also check:How to resolve the algorithm Partial function application step by step in the Bracmat programming language
You may also check:How to resolve the algorithm Factors of a Mersenne number step by step in the Seed7 programming language