Baklava in Pascal

Published on 23 October 2023 (Updated: 23 October 2023)

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

Current Solution

program Baklava;

var
  n, i, j, k, space: integer;
begin
  n := 11;
  space := n - 1;
  for i := 1 to n do
  begin
    for j := 1 to space do
      write(' ');
    space := space - 1;
    for k := 1 to (2 * i - 1) do
      write('*');
    writeln;
  end;
  space := 1;
  for i := (n - 1) downto 1 do
  begin
    for j := 1 to space do
      write(' ');
    space := space + 1;
    for k := (2 * i - 1) downto 1 do
      write('*');
    writeln;
  end;
end.

Baklava in Pascal 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.