You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"arabic-to-roman-numerals": `<div class="int hole"><a href=arabic-to-roman-numerals>Arabic to Roman<p>Convert Hindu–Arabic numerals to Roman numerals…</p></a><table>`,
"seven-segment": `<div class="int hole"><a href=seven-segment>Seven Segment<p>Using pipes and underscores print a seven segment display…</p></a><table>`,
@@ -20,6 +21,22 @@ var preambles = map[string]string{
20
21
"fibonacci": `<h1>Fibonacci</h1><p>Print the first <b>31</b> Fibonacci numbers from <b>F<sub>0</sub> = 0</b> to <b>F<sub>30</sub> = 832040</b> (inclusive), each on a separate line.</p>`,
21
22
"fizz-buzz": `<h1>Fizz Buzz</h1><p>Print the numbers from <b>1</b> to <b>100</b> (inclusive), each on their own line.</p><p>If, however, the number is a multiple of <b>three</b> then print <b>Fizz</b> instead, and if the number is a multiple of <b>five</b> then print <b>Buzz</b>.</p><p>For numbers which are multiples of <b>both three and five</b> then print <b>FizzBuzz</b>.</p>`,
22
23
"prime-numbers": `<h1>Prime Numbers</h1><p>Print all the prime numbers between <b>1</b> and <b>100</b></p>`,
24
+
"sierpiński-triangle": `<h1>Sierpiński Triangle</h1><p>The Sierpiński triangle is a fractal and attractive fixed set with the overall shape of an equilateral triangle, subdivided recursively into smaller equilateral triangles.</p><p>A Sierpiński triangle of order 4 should look like this, print such an output:</p><pre> ▲
25
+
▲ ▲
26
+
▲ ▲
27
+
▲ ▲ ▲ ▲
28
+
▲ ▲
29
+
▲ ▲ ▲ ▲
30
+
▲ ▲ ▲ ▲
31
+
▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲
32
+
▲ ▲
33
+
▲ ▲ ▲ ▲
34
+
▲ ▲ ▲ ▲
35
+
▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲
36
+
▲ ▲ ▲ ▲
37
+
▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲
38
+
▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲
39
+
▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲ ▲</pre>`,
23
40
"arabic-to-roman-numerals": `<h1>Arabic to Roman Numerals</h1><p>For each arabic number argument print the same number in roman numerals.</p>`,
24
41
"pascals-triangle": `<h1>Pascal's Triangle</h1><p>Print the first <b>20 rows</b> of Pascal's triangle.</p>`,
0 commit comments