Data update
This commit is contained in:
parent
29a5eea0d4
commit
5c1bb7bfa9
2011 changed files with 35081 additions and 3229 deletions
9
Task/General-FizzBuzz/SETL/general-fizzbuzz.setl
Normal file
9
Task/General-FizzBuzz/SETL/general-fizzbuzz.setl
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
program general_fizzbuzz;
|
||||
fizzbuzz(20, {[3,"Fizz"], [5,"Buzz"], [7,"Baxx"]});
|
||||
|
||||
proc fizzbuzz(maxno, factors);
|
||||
loop for i in [1..maxno] do
|
||||
print(+/[word : word = factors(f) | i mod f=0] ? str i);
|
||||
end loop;
|
||||
end proc;
|
||||
end program;
|
||||
Loading…
Add table
Add a link
Reference in a new issue