A Collection of Code Snippets in as Many Programming Languages as Possible
This project is maintained by TheRenegadeCoder
Welcome to the Fizz Buzz in Ada page! Here, you'll find the source code for this program as well as a description of how the program works.
with Text_IO; use Text_IO;
procedure Fizz_Buzz is
Counter : Integer := 1;
begin
while Counter < 101
loop
if Counter mod 3 = 0 and Counter mod 5 = 0 then
Put_Line("FizzBuzz");
elsif Counter mod 3 = 0 then
Put_Line("Fizz");
elsif Counter mod 5 = 0 then
Put_Line("Buzz");
else
Put_Line(Integer'Image(Counter));
end if;
Counter := Counter + 1;
end loop;
end Fizz_Buzz;
Fizz Buzz 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.