Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
12
Task/FizzBuzz/Elixir/fizzbuzz-1.elixir
Normal file
12
Task/FizzBuzz/Elixir/fizzbuzz-1.elixir
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
Enum.each 1..100, fn x ->
|
||||
IO.puts(case { rem(x, 5) == 0, rem(x,3) == 0 } do
|
||||
{ true, true } ->
|
||||
"FizzBuzz"
|
||||
{ true, false } ->
|
||||
"Fizz"
|
||||
{ false, true } ->
|
||||
"Buzz"
|
||||
{ false, false } ->
|
||||
x
|
||||
end)
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue