Skip to content

Instantly share code, notes, and snippets.

@MAGANER
Created December 29, 2022 17:04
Show Gist options
  • Save MAGANER/6467f92bb611bd0ceb6f6ac1033746a9 to your computer and use it in GitHub Desktop.
Save MAGANER/6467f92bb611bd0ceb6f6ac1033746a9 to your computer and use it in GitHub Desktop.
task #20 from https://projecteuler.net in haskell
import Data.Char(digitToInt)
main::IO()
main = print $ sum $ map digitToInt $ show $ product[1..100]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment