langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
6
Task/FizzBuzz/Slate/fizzbuzz.slate
Normal file
6
Task/FizzBuzz/Slate/fizzbuzz.slate
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
n@(Integer traits) fizzbuzz
|
||||
[
|
||||
output ::= ((n \\ 3) isZero ifTrue: ['Fizz'] ifFalse: ['']) ; ((n \\ 5) isZero ifTrue: ['Buzz'] ifFalse: ['']).
|
||||
output isEmpty ifTrue: [n printString] ifFalse: [output]
|
||||
].
|
||||
1 to: 100 do: [| :i | inform: i fizzbuzz]
|
||||
Loading…
Add table
Add a link
Reference in a new issue