Anonymous user
FizzBuzz: Difference between revisions
→{{header|Haskell}}: Simplified first example
(→{{header|Haskell}}: Simplified first example) |
|||
Line 576:
Variant directly implementing the specification:
<lang haskell>
| x3 = "Fizz"▼
| x5 = "Buzz"▼
| otherwise = show x▼
x3 = x `mod` 3 == 0 ▼
fizzbuzz x
</lang>
|