rf-web/vendor/bundle/gems/rouge-3.12.0/lib/rouge/demos/pascal

15 lines
257 B
Plaintext
Raw Normal View History

2019-10-21 08:18:17 +00:00
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.