Skip to content

Commit

Permalink
Add Baklava in Racket (#3927)
Browse files Browse the repository at this point in the history
  • Loading branch information
rzuckerm authored Oct 19, 2024
1 parent 4735ab7 commit 3f8ce54
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions archive/r/racket/baklava.rkt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#lang racket
(for ([i (in-range -10 11)])
(define numSpaces (abs i))
(define numStars (- 21 (* numSpaces 2)))
(define s (make-string numSpaces #\ ))
(define t (make-string numStars #\*))
(printf "~a~a\n" s t)
)

0 comments on commit 3f8ce54

Please sign in to comment.