A Collection of Code Snippets in as Many Programming Languages as Possible
This project is maintained by TheRenegadeCoder
Welcome to the Fizz Buzz 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
integer procedure mod(x, n);
value x, n;
integer x, n;
begin
mod := x - n * (x % n)
end mod;
integer i;
for i := 1 step 1 until 100 do
begin
if mod(i, 15) = 0 then outstring(1, "FizzBuzz")
else if mod(i, 3) = 0 then outstring(1, "Fizz")
else if mod(i, 5) = 0 then outstring(1, "Buzz")
else outinteger(1, i);
outstring(1, "\n")
end
end
Fizz Buzz 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.