A Collection of Code Snippets in as Many Programming Languages as Possible
This project is maintained by TheRenegadeCoder
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.
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.
No 'How to Implement the Solution' section available. Please consider contributing.
No 'How to Run the Solution' section available. Please consider contributing.