Baklava in ALGOL 60

Published on 17 March 2026 (Updated: 17 March 2026)

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

Current Solution

begin
    procedure outRepeatString(n, s);
    value n;
    integer n;
    string s;
    begin
        integer i;
        for i := 1 step 1 until n do outstring(1, s)
    end outRepeatString;

    integer i, numspaces, numstars;
    for i := -10 step 1 until 10 do
    begin
        numspaces := abs(i);
        numstars := 21 - 2 * numspaces;
        outRepeatString(numspaces, " ");
        outRepeatString(numstars, "*");
        outstring(1, "\n")
    end
end

Baklava in ALGOL 60 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.