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 d3bcc2d commit 876e2ebCopy full SHA for 876e2eb
archive/n/nim/baklava.nim
@@ -0,0 +1,6 @@
1
+import strutils
2
+
3
+for n in -10..10:
4
+ var numSpaces: int = abs(n)
5
+ var numStars: int = 21 - 2 * numSpaces
6
+ echo repeat(" ", numSpaces), repeat("*", numStars)
0 commit comments