8 lines
211 B
Text
8 lines
211 B
Text
Enum.each 1..100, fn x ->
|
|
IO.puts(case { rem(x,3) == 0, rem(x,5) == 0 } do
|
|
{ true, true } -> "FizzBuzz"
|
|
{ true, false } -> "Fizz"
|
|
{ false, true } -> "Buzz"
|
|
{ false, false } -> x
|
|
end)
|
|
end
|