rf-web/vendor/bundle/gems/rouge-3.12.0/lib/rouge/demos/pascal
2019-10-21 10:18:17 +02:00

15 lines
257 B
Plaintext

program FizzBuzz(output);
var
i: Integer;
begin
for i := 1 to 100 do
if i mod 15 = 0 then
WriteLn('FizzBuzz')
else if i mod 3 = 0 then
WriteLn('Fizz')
else if i mod 5 = 0 then
WriteLn('Buzz')
else
WriteLn(i)
end.