FizzBuzz: Difference between revisions
Content deleted Content added
→{{header|Perl}}: Add Pascal. |
adding gap |
||
Line 1,246: | Line 1,246: | ||
end do |
end do |
||
end program fizzbuzz_select</lang> |
end program fizzbuzz_select</lang> |
||
=={{header|GAP}}== |
|||
<lang gap>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;</lang> |
|||
=={{header|Go}}== |
=={{header|Go}}== |