Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/FizzBuzz/GAP/fizzbuzz.gap
Normal file
14
Task/FizzBuzz/GAP/fizzbuzz.gap
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
FizzBuzz := function()
|
||||
local i;
|
||||
for i in [1 .. 100] do
|
||||
if RemInt(i, 15) = 0 then
|
||||
Print("FizzBuzz\n");
|
||||
elif RemInt(i, 3) = 0 then
|
||||
Print("Fizz\n");
|
||||
elif RemInt(i, 5) = 0 then
|
||||
Print("Buzz\n");
|
||||
else
|
||||
Print(i, "\n");
|
||||
fi;
|
||||
od;
|
||||
end;
|
||||
Loading…
Add table
Add a link
Reference in a new issue