We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c90151a commit 1b07781Copy full SHA for 1b07781
archive/i/io/Baklava.io
@@ -0,0 +1,7 @@
1
+baklavaLine := method(n,
2
+ num_spaces := n abs
3
+ num_stars := 21 - (2 * num_spaces)
4
+ (" " repeated(num_spaces)) .. ("*" repeated(num_stars))
5
+)
6
+
7
+for(n, -10, 10, baklavaLine(n) println)
0 commit comments