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 31f6ee8 commit 83d50ffCopy full SHA for 83d50ff
archive/g/gosu/baklava.gsp
@@ -0,0 +1,5 @@
1
+for ( n in -10..10) {
2
+ var numSpaces = Math.abs(n)
3
+ var numStars = 21 - 2 * numSpaces
4
+ print(" ".repeat(numSpaces) + "*".repeat(numStars))
5
+}
0 commit comments