Data update
This commit is contained in:
parent
35bcdeebf8
commit
74c69a0df6
2427 changed files with 31826 additions and 3468 deletions
10
Task/FizzBuzz/SETL/fizzbuzz.setl
Normal file
10
Task/FizzBuzz/SETL/fizzbuzz.setl
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
program fizzbuzz;
|
||||
loop for n in [1..100] do
|
||||
print(fizzbuzz(n));
|
||||
end loop;
|
||||
|
||||
proc fizzbuzz(n);
|
||||
divs := [[3, "Fizz"], [5, "Buzz"]];
|
||||
return +/[w : [d,w] in divs | n mod d=0] ? str n;
|
||||
end proc;
|
||||
end program;
|
||||
Loading…
Add table
Add a link
Reference in a new issue