Skip to content

Instantly share code, notes, and snippets.

@mizukmb
Created May 5, 2017
Embed
What would you like to do?
fizzBuzz :: Integer -> String
fizzBuzz 0 = "0"
fizzBuzz fz
| fz `mod` 15 == 0 = "FizzBuzz"
| fz `mod` 3 == 0 = "Fizz"
| fz `mod` 5 == 0 = "Buzz"
| otherwise = show fz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment