summaryrefslogtreecommitdiff
path: root/haskell/p20.hs
blob: d9468e81386e7caf0ac2f452c500c5d7694c534e (plain) (blame)
1
2
3
4
5
6
import Data.Char (digitToInt)

p20 :: Int
p20 = sum (map digitToInt (show (product [1..100])))

main = putStrLn $ "Solution: " ++ show p20