Created
December 18, 2013 02:21
-
-
Save noahlt/8016335 to your computer and use it in GitHub Desktop.
FizzBuzz in Haskell — I'm sure this has been done before, but this one is mine.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mapM_ putStrLn [ if x `mod` 15 == 0 then "fizzbuzz" else if x `mod` 3 == 0 then "fizz" else if x `mod` 5 == 0 then "buzz" else show x | x <- [1..100]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment