Skip to content
Haskell Triangle Solution
@J3RN
Show files
Open on Replit
solution.hs
Config files
.replit
replit.nix
solution.hs
9
1
2
solution =
[(a, b, c) | c <- [1..10], b <- [1..c], a <- [1..b], a + b + c == 24, a^2 + b^2 == c^2]
Haskell Triangle Solution - Replit