A Collection of Code Snippets in as Many Programming Languages as Possible
This project is maintained by TheRenegadeCoder
Welcome to the Baklava in Ada page! Here, you'll find the source code for this program as well as a description of how the program works.
with Ada.Text_IO; use Ada.Text_IO;
procedure Baklava is
M : Integer := 11;
begin
for I in 1 .. 11 loop
for J in 1 .. (M-1) loop
Put(" ");
end loop;
for K in 1 .. (2*I - 1) loop
Put("*");
end loop;
M := M -1;
Put_Line("");
end loop;
M:=2;
for I in reverse 1 .. 10 loop
for J in 1 .. (M-1) loop
Put(" ");
end loop;
for K in 1 .. (2*I - 1) loop
Put("*");
end loop;
M := M + 1;
Put_Line("");
end loop;
end Baklava;
Baklava in Ada was written by:
If you see anything you'd like to change or update, please consider contributing.
No 'How to Implement the Solution' section available. Please consider contributing.
No 'How to Run the Solution' section available. Please consider contributing.