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 a7ded69 commit 31f6ee8Copy full SHA for 31f6ee8
archive/g/golo/baklava.golo
@@ -0,0 +1,9 @@
1
+module baklava
2
+
3
+function main = |args| {
4
+ for (var n = -10, n <= 10, n = n + 1) {
5
+ let numSpaces = Math.abs(n)
6
+ let numStars = 21 - 2 * numSpaces
7
+ println(" " * numSpaces + "*" * numStars)
8
+ }
9
+}
0 commit comments