Skip to content

Commit 3de10e8

Browse files
authored
Add Baklava in Latte (#4141)
1 parent 63368c2 commit 3de10e8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

archive/l/latte/baklava.lt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
def printRepeatString(s:String, n:int)
2+
if n > 0
3+
for i in 1.to(n)
4+
print(s)
5+
6+
for i in (-10).to(10)
7+
numSpaces:int = i
8+
if numSpaces < 0
9+
numSpaces = -numSpaces
10+
11+
printRepeatString(" ", numSpaces)
12+
printRepeatString("*" , 21 - 2*numSpaces)
13+
println()

0 commit comments

Comments
 (0)