Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- main = putStrLn $ unlines $ map fb [1..]
- fb n
- | f && b = "FizzBuzz"
- | f = "Fizz"
- | b = "Buzz"
- | otherwise = show n
- where
- f = mod n 3 == 0
- b = mod n 5 == 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement