Skip to content

Commit c90151a

Browse files
authored
Add Baklava in Janet (#4153)
1 parent f64d31a commit c90151a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

archive/j/janet/baklava.janet

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
(for n -10 11
2+
(let [num_spaces (math/abs n)
3+
num_stars (- 21 (* 2 num_spaces))]
4+
(print (string/repeat " " num_spaces) (string/repeat "*" num_stars))
5+
)
6+
)

0 commit comments

Comments
 (0)