# code-block-pro/1.27.4/build/shiki/samples/ada.sample

Code Block Pro – Beautiful Syntax Highlighting, version 1.27.4. 23 lines.

- Page: https://pluginprobe.com/plugins/code-block-pro/1.27.4/code/build/shiki/samples/ada.sample
- Raw: https://pluginprobe.com/plugins/code-block-pro/1.27.4/raw/build/shiki/samples/ada.sample
- Modified: 2023-09-03T01:04:34+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/code-block-pro/1.27.4/code/build/shiki/samples/ada.sample#L10-L20`.

```
with
    Ada.Text_IO,
    Ada.Integer_Text_IO;
use Ada;

procedure fizz_buzz is
begin
    for i in 1..100 loop
        if i mod 15 = 0 then
            Text_IO.Put_Line("fizz buzz");
        elsif i mod 5 = 0 then
            Text_IO.Put_Line("buzz");
        elsif i mod 3 = 0 then
            Text_IO.Put_Line("fizz");
        else
            Integer_Text_IO.put(i, Width => 0);
            Text_IO.New_Line;
        end if;
    end loop;
end fizz_buzz;

-- From https://github.com/kylelk/ada-examples/blob/master/fizz_buzz.adb

```
