Baklava in Bracmat

Published on 20 January 2025 (Updated: 20 January 2025)

Welcome to the Baklava in Bracmat page! Here, you'll find the source code for this program as well as a description of how the program works.

Current Solution

{
Resources:
- https://rosettacode.org/wiki/Loops/For#Bracmat
}

{for n = -10 to 10}
  -11:?n
&   whl
  ' ( 1+!n:<11:?n
    { numspaces = abs(n) }
    & abs$(!n):?numspaces
    { numstars = 21 - 2 * numspaces}
    & 21+-2*!numspaces:?numstars
    { Output numspaces " "}
    & whl'(!numspaces+-1:~<0:?numspaces&put$" ")
    { Output numstars "*"}
    & whl'(!numstars+-1:~<0:?numstars&put$"*")
    { Output newline }
    & put$\n
    )

Baklava in Bracmat was written by:

If you see anything you'd like to change or update, please consider contributing.

How to Implement the Solution

No 'How to Implement the Solution' section available. Please consider contributing.

How to Run the Solution

No 'How to Run the Solution' section available. Please consider contributing.